Thursday, 22 October 2015

How to install CocoaPods and setup

Install CocoaPods and setup with your Xcode project CocoaPods is a dependency management tool for iOs and OS X development. It makes managing third part libraries in an Xcode easy and straightly. CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project. Why Should we use CocoaPods. Sometimes...

Monday, 21 September 2015

How to remove expired provisioning profile from mac and Xcode?

Over the last few days I’ve been getting alerts on my iPhone that my provisioning profiles are about to expire.  So I have updated my provisioning profile and certificate both. After updating my profiles I was surprised to see that I kept getting warnings. It seemed now that I had both the new and expiring profiles being synched each time I connected my iPhone to iTunes. The best way to remove...

Wednesday, 28 January 2015

How to create build for simulator and also run that build in simulator?

Generate a Simulator Build In order to generate a simulator build you will: i)Find the folder containing your xcode project. ii)Open a terminal and run a couple of commands to generate the build. 1)Find your Xcode project directory The easiest way to find your Xcode project is to use Xcode itself. Control-click on your project and select Show in Finder: 2)Open a Terminal and Find Your Simulator...

Sunday, 18 January 2015

Practicing Auto Layout - An example of keyboard sensitive layout

The keyboard sensitive layout is very common in iOS apps, in which the view(s) will automatically shrink or extend when the keyboard comes out or disappears. OK, ready? Let’s go! 1. Creating the view hierarchy Start a new project with single view application. Drag a UITextView and a UIButton into the controller’s default view. Make these two views extend to fill the parent view. Keep the button’s...