Category Archives: Objective-c

Objective-c based iOS app development.

How to Disable ARC for files in a project? Xcode

      No Comments on How to Disable ARC for files in a project? Xcode

ARC can be disabled for a single or group of files in a project. Adding -fno-objc-arc  compiler flag for the selected files in Target->Build Phases -> Compile Sources disables ARC for those files. You can do it in simple two steps Go to Target – > Build Phases-> Compile Sources Select… Read more »

Passing Data between View Controllers

      No Comments on Passing Data between View Controllers

A ViewController in an application is seldom standalone in nature. They require data from ViewControllers in front and from those behind them, this leaves us with two types of data passing Forward Data passing Backward data passing For discussing both kinds of data passing we have two ViewCotrollers ASViewController ASViewControllerB… Read more »

Dynamic height UITableViewCell using Auto layouts

      No Comments on Dynamic height UITableViewCell using Auto layouts

How to create dynamic height tableview cell has been a very daunting task especially when you have to calculate and return variable row height in But with autolayouts its very simple.you just have to make sure that the constraints of the tableview cell subviews are added in such a way… Read more »

iOS 8 CLLocationManager asking for user permission

Pre iOS 8 it was enough to allocate location manager object to generate a permission request but post iOS8 things have changed, in order to initiate the the request for location information you have to do following steps Add keys in info plist NSLocationWhenInUseUsageDescription   : against this key description… Read more »