Month: April 2014
Generate random numbers – Example of motion and touch event
Let us see how to use motion and touch event in iOS by looking through a simple project that displays random number. This project displays random number on a label for a touch and motion event. Check out this link for more about events in iOS After creating a single view application, add a new…
Test Driven Development in iOS – Beginners tutorial – Part 2
This is in continuation of the Test Driven Development in iOS – Beginners tutorial and this covers writing XCTest user interfaces in iOS. AddingTwoNumbers app will have following controls 1. Three textfields – For entering the numbers and displaying the result. 2. Two buttons – Add button to perform addition and Reset button to clear…
Test Driven Development in iOS – Beginners tutorial – Part 1
This is a beginner tutorial on TDD in iOS, explained with an example app that adds two numbers. Let us see try to use some XCTest assertions supported in iOS in this project. Create a New iOS project select the template as Empty Application Enter the required details in Choose options for your new project…