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

How to dismiss keyboard when touching anywhere outside UITextField (in swift)?

I’m working on a project that have a UIViewController, on the view controller there is a UIScrollView and a UITextField on the scrollview. like this: I’m trying to dismiss the keyboard and hide it after typing some text in the textfield and tap anywhere outside the textfield. I’ve tried the following code: override func viewDidLoad() […]

Use PFQueryTableViewController (from parse) with Swift

I have added a UITableViewController to storyboard and created/assigned a new class which inherits from PFQueryTableViewController to the storyboard controller. I then wrote the following init functions but I am unable to get the Table view controller working correctly. What needs to be implemented in order to instantiate the PFQueryTableViewController? The code in the Parse […]

Read Data from Firebase and Save Into an Array (Swift)

I’ve been going around in circles about something that seems really simple, but I can’t figure out it out. I simply want to read data from Firebase and save it in array so I can use it in my app. I know how to read the data as the following works for me to print […]

ios:EXC_BAD_ACCESS for Webview delegate

I have a situation where I am trying to resolve these Crashlytics issues and I have this crash log Thread : Crashed: 0 libobjc.A.dylib 0x34217f46 objc_msgSend + 5 1 UIKit 0x29a2d5a3 -[UIWebView webView:decidePolicyForNavigationAction:request:frame:decisionListener:] + 182 2 CoreFoundation 0x2630cad4 __invoking___ + 68 3 CoreFoundation 0x26239645 -[NSInvocation invoke] + 300 4 CoreFoundation 0x2623d0c7 -[NSInvocation invokeWithTarget:] + […]

Access call history on iOS

In my iOS application I need to get all call history (dialled,recieved,missed) from an iOS device and display as a list in my application. So many answers are there previously for this question.But I didn’t get exact answer for my question. If anybody worked on this question previously please let me know the answer immediately.

Unity check internet connection availability

I am porting our game to Unity, and need some help regarding internet connectivity check in Unity. Official Unity Documentation says ‘do not use Application.internetReachability. So i am confused which code will work here. Didn’t find any prominent solution in any forum. I want to check whether wi-fi or GPRS is on or not which […]

Check direction of scroll in UIScrollView

I am trying to implement the method scrollViewWillBeginDragging. When this method is called I check that the user has selected one of the buttons that are within the scrollview is in state:selected. If not then I display a UIAlert to inform the user. My problem here is I only want to call the button selected […]

Compatibility of ARC and Storyboard

What’s the compatibility of ARC and Storyboard considering devices and iOS? Will ARC and Storyboard work on iPhone 3G, 3GS, 4 and 4S? Will ARC and Storyboard work on iOS 4 and 5?

Writing a new set of data to Plist instead of overwriting it

I’m trying to get a plist to store multiple sets of data, but each time I save (using a button from an ActionSheet), it overwrites the previous set. I want to add multiple ‘friends’ and their data. I’m not too keen on using Core Data, so I’m wondering how you can do it with a […]

Why is a HTTPS NSURLSession connection only challenged once per domain?

When connecting via HTTPS to a server, I implement the NSURLSessionDelegate method URLSession:didReceiveChallenge:completionHandler: to implement some custom functionality. The problem is that this delegate method is only being called the first time a request is made (subsequent requests do not invoke this method). My custom functionality requires the delegate method to be called for every […]