Does anyone know what the new Exit icon is used for when editing storyboards using Xcode 4.5?

I had a hard time following the accepted answer so here is more detail. Given the photo below on view controller C you can “exit” back to any view controller in the segue path. ViewController A you can write: – (IBAction)done:(UIStoryboardSegue *)segue { // Optional place to read data from closing controller } ViewController B … Read more

How to send multiple parameterts to PHP server in HTTP post

For the network operation these is better supporting API like AFNetworking available witch work async and way better to handle Tutorials for AFNetworking Get from here NSArray *keys = @[@”UserID”, ]; NSArray *objects = @[@(userId)]; NSDictionary *parameter = [NSDictionary dictionaryWithObjects:objects forKeys:keys]; AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL: [NSURL URLWithString:BaseURLString]]; [httpClient setParameterEncoding:AFJSONParameterEncoding]; [httpClient registerHTTPOperationClass:[AFJSONRequestOperation class]]; NSMutableURLRequest … Read more

disable autorotate on a single UIViewController in iOS6

Per the View Controller Programing Guide If you want to temporarily disable automatic rotation, avoid manipulating the orientation masks to do this. Instead, override the shouldAutorotate method on the initial view controller. This method is called before performing any autorotation. If it returns NO, then the rotation is suppressed. So you need to subclass ‘UINavigationController’, … Read more

Facebook SDK 3.1 for iOS – runs on iOS6, but crashes on iOS 5.x

Did you set the frameworks to be optional? When you are adding AdSupport.framework, Social.framework, and Accounts.framework, there is drop down menu to the right that you can select between “Required” and “Optional”. See a picture example here: Link Another thing to check is in your Project’s “Build Settings” that ‘Base SDK’ is 6.0 and ‘iOS … Read more

What is the iOS 6 user agent string?

iPhone: Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 iPad: Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 For a complete list and more details about the iOS user agent check out these 2 resources: Safari User Agent … Read more