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...