iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.
I’ve just upgraded to XCode 4.5 to update my iOS app to run on the 4 inch display for the iPhone 5, but I’m getting a build error saying dismissModalViewControllerAnimated:’ is deprecated on the line: [self dismissModalViewControllerAnimated:NO]; I’ve tried updating to the recommended overload with a completion handler (but set to NULL) like this: [self […]
Accessing iOS 6 new APIs for camera exposure and shutter speed
On Apple’s iOS 6.0 feature page, it used to say Take advantage of the built-in camera’s advanced features. New APIs let you control focus, exposure, and region of interest. You can also access and display faces with face detection APIs, and leverage hardware-enabled video stabilization. This text has since been removed, and I can’t find […]
Can iPhone apps start on start-up?
I’ve answered two different questions now, both explaining how VOIP apps don’t start on start-up, yet people seem to think they do. I’m not 100% sure myself, someone linked me to a part of the apple docs, which doesn’t really mention anything about auto-starting of apps. I was originally going on prior knowledge and this […]
Swift GET request with parameters
I’m very new to swift, so I will probably have a lot of faults in my code but what I’m trying to achieve is send a GET request to a localhost server with paramters. More so I’m trying to achieve it given my function take two parameters baseURL:string,params:NSDictionary. I am not sure how to combine […]
Dismiss keyboard on touch anywhere outside UITextField
I am developing an iPad app that has a large number of UIViewControllers, UITableViews (with cells with accessoryViews of UITextFields) etc, etc. Many of the UIViewControllers appear within a navigation hierarchy. There are many different places where UITextFields appear, including as UITableViewCell accessoryViews. I would like to devise an efficient strategy for dismissing the keyboard […]
UIModalTransitionStylePartialCurl doesn't get back to previous state. (Not dismissing)
I’ve got 2 view controllers, let’s say A and B. In A, I’m calling B to be shown with transition style UIModalTransitionStylePartialCurl [b setModalTransitionStyle:UIModalTransitionStylePartialCurl]; [self presentModalViewController:b animated:YES]; It is working fine. However when I press the curled area in the program compiled with iOS 4.3. It does not dismiss at all. It doesn’t get back […]
How to use NSURLSessionDataTask in Swift
Can someone help me? I can’t find a good example for the completion syntax. var url : NSURL = NSURL.URLWithString(“https://itunes.apple.com/search?term=\(searchTerm)&media=software”) var request: NSURLRequest = NSURLRequest(URL:url) let config = NSURLSessionConfiguration.defaultSessionConfiguration() let session = NSURLSession.sessionWithConfiguration(config) NSURLSessionDataTask(session.dataTaskWithRequest(request, completionHandler: ((NSData!, NSURLResponse!, NSError!) -> Void)?) Thanks!
How to download file in swift?
I just started learning apple swift programming for iOS coming from android. I basically can now read and manipulate swift code and also learned some common classes used in iOS swift programming but still having some confusion with the syntax and everything. I’m trying to download file. Like, lets just say coming from this URL […]
Choosing the right IOS XML parser
There are a million different XML parsers for the iPhone. I have a medium sized XML file that contains alot of duplicate tags (at different points in the hierarchy). I was thinking about TBXML but I was concerned about its lack of XPath support. For instance lets say my XML file looked like this. <blog> […]