Configuring Web Applications

maggap - make iOS apps

warning 'Implicit declaration of function'

This was caused by a missing import statement in my fork of org.apache.cordova.wifiinfo. See [[|github]]

install iOS docs in Dash

First: To install OS X/iOS docsets you need to open Xcode and go to Preferences > Downloads > Documentation.

get name of currently connected WiFi network

CFArrayRef myArray = CNCopySupportedInterfaces(); CFDictionaryRef myDict = CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(myArray, 0)); NSDictionary ssidList = (__bridge NSDictionary)myDict; NSString *SSID = [ssidList valueForKey:@"SSID"]; NSLog(@"%@",SSID);

# open Settings from your app
  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];
  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
* as of iOS8 you can open the built-in Settings app with

NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; if ([[UIApplication sharedApplication] canOpenURL:url]) { [[UIApplication sharedApplication] openURL:url]; }

# Reflector App
* [[|via AirPlay het beeld van je telefoon naar je computer streamen]]

# iPhone 6 sensor hacks

# libobjc.A.dylib`objc_msgSend:
see [[phonegap]]

# URL handling (in .plist)

# file handling (in .plist)
    <string>STL File</string>
    <string>STL file</string>

# How to obtain Certificate Signing Request
  - [[|Create a certificate with 'Keychain Access']]
  - [[|Upload the CertificateSigningRequest file to Apple's Dev center]]
  - [[|Create a mobile provisioning profile]]

# disable select in webpages with css
<code css>
-webkit-user-select: none;

disable glow effect for home screen icons of webpages

more info:

# anti-aliasing on ios with openFrameworks
<code c>
int main(){
    ofAppiPhoneWindow * iOSWindow = new ofAppiPhoneWindow();
    ofSetupOpenGL(iOSWindow, 480, 320, OF_FULLSCREEN);
    ofRunApp(new testApp);

openFramworks for ios setup info

in-app email

in-app purchase

line smoothing

cross compiling


file is universal but does not contain a(n) armv7 slice for architecture armv7 try to remove armv7s from the build settings

crash logs


ld: symbol(s) not found for architecture armv7

dit betekent dat er een sourcefile (.m / .mm of .cpp) niet gevonden kan worden of niet wordt mee-gecompiled. Ook al zit deze misschien wel in je projectree. Oplossing: ga naar je Project settings klik op de juiste Target en ga dan naar ''Compile sources''. Sleep de ontbrekende source file hier naar toe.

enable redpark serial cable in your iOS project

Be sure to add 'Supported external accessory protocol' = 'com.redpark.hobdb9' to your project's .plist file

Undefined symbols ... _OBJCCLASS$_EAAccessoryManager

Add ''ExternalAccessory.framework'' to your project's Target Linked Libraries.

snippets of basic usage of redparkWrapper

// // ViewController.h //

import <UIKit/UIKit.h>

import "redparkWrapper.h"

@interface ViewController : UIViewController {


  • (IBAction)go:(id)sender;

@property (retain) redparkWrapper rp; @property (nonatomic, retain) IBOutlet UITextView res;


<code objc>
//  ViewController.m

#import "ViewController.h"

@interface ViewController ()


@implementation ViewController

@synthesize rp, res;

- (void)viewDidLoad {
    [super viewDidLoad];

    rp = [[redparkWrapper alloc] init];
    [rp setDelegate:self];

    [res setText:@"nothing yet"];

- (IBAction)go:(id)sender {
    [res setText:@"sending..."];
    [rp sendSerial:@"TEST"];

-(void) newMessageAvailable:(NSString*)msg{
    [res setText:@"receiving"];
    [res setText:msg];