iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

Super slow lag/delay on initial keyboard animation of UITextField

Alright, this problem has been driving me nuts. It takes roughly 3-4 seconds for the keyboard to pop up after I touch my UITextField. This only occurs on the first time the keyboard pops up since the app launched, afterwards the animation starts instantly. At first I thought it was problem of loading too many […]

How can i change the color of pagination dots of UIPageControl?

I am developing an application in which I want to change either color or image of UIPageControl pagination dots. How can I change it? Is it possible to customize UIpageControl on above scenario?

iOS crash log catch, debug info.. Catch and send via email to the Dev team

Recently we came across a situation where we wanted to see the debug info from the app which a user has on his device. So, what I am looking for is a way to find the log on the device, paste it as inline text on a mail and allow the user to send it.. […]

Making GCM work for iOS device in the background

I’m trying to use GCM for IOS and Android clients. It seems to work fine with IOS when app is in the foreground, however, when the app is in the background, the notification center doesn’t receive the message and didReceiveRemoteNotification with completionHandler doesn’t get called. I identified a problem as a wrongly formatted message from […]

Clearing UIWebview cache

I have used UIWebview to load a web page using loadRequest: method, when I leave that scene I call [self.webView stopLoading]; and release the webView. In activity monitor on first launch i have seen that the real memory increased by 4MB, and on multiple launches/loading the real memory doesn’t increase. It is increasing only once. […]

How do I check when a UITextField changes?

I am trying to check when a text field changes, equivalent too the function used for textView – textViewDidChange so far I have done this: func textFieldDidBeginEditing(textField: UITextField) { if self.status.text == “” && self.username.text == “” { self.topRightButton.enabled = false } else { self.topRightButton.enabled = true } } Which kind of works, but the […]

Download and install an ipa from url on iOS

I need to download and install an ipa directly from an URL. I have tried this: NSURL *url = [NSURL URLWithString:@””]; [[UIApplication sharedApplication] openURL:url]; The app launches Safari but then this message appears: Is it possible?

How do i open phone settings when a button is clicked ios

I am trying to implement a feature in an App that shows an alert when internet connection is not available. The alert has two action OK and Settings, whenever a user clicks on settings i want to take them to the phone settings programmatically. I am using Swift and Xcode-Beta

iOS 7 custom back button

I want to use custom back button. in iOS 6 everything is perfect but iOS 7 is strange. [[UIBarButtonItem appearance] setBackButtonBackgroundImage:[[UIImage imageNamed:@”back_button_normal”] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12.0, 0, 12.0)] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; first, it has no iOS 7 arrow and no background image. (Russian locale) then, if you press the button background image appears. Also i had background image […]

Getting list of files in documents folder

What is wrong with my code for getting the filenames in the document folder? func listFilesFromDocumentsFolder() -> [NSString]?{ var theError = NSErrorPointer() let dirs = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.AllDomainsMask, true) as? [String] if dirs != nil { let dir = dirs![0] as NSString let fileList = NSFileManager.defaultManager().contentsOfDirectoryAtPath(dir, error: theError) as [NSString] return fileList }else{ return nil } […]