Pages

Monday 19 January 2015

Check Box Button in iOS





I have created a simplest way to create a checkbox in iOS..

download the source code -


In that code there is three way we can use the checkbox in iOS..download the code and refer it.

and


1 more way is just you can...

 // when you setup your button, set an image for the selected and normal states
        [myCheckBoxButton setImage:nonCheckedImage forState:UIControlStateSelected];
        [myCheckBoxButton setImage:nonCheckedImage forState:UIControlStateNormal];
        
       

  - (void)myCheckboxToggle:(id)sender
     {
            myCheckboxButton.selected = !myCheckboxButton.selected; // toggle the selected property, just a simple BOOL

     }

























No comments:

Post a Comment