Check box in iPhone

Step 1:-
Click on New Project & choose View-Based Application Project template.

Step 2:-
Enter the name of Project & save it. (for example, CheckBox)

Step3:-
Goto CheckboxViewController.h and implement the code as follows. ( Here, we have mentioned the name of project as CheckBox, so view controller name is CheckBoxViewController )

Step 4:-
Open CheckBoxViewController.m and implement the code as follows.

Step 5:-
Open CheckboxViewController.xib and Add following things as shown in following figure.
– A Label
– A Button

sugartin checkbox

sugartin checkbox 2

Give Me the Code.
Here is the source code for it.

Leave a Reply

Your email address will not be published. Required fields are marked *



*