ios - Warning switch condition has boolean value -


Displaying the subview with the first tap on the button on the other, removing the subview. Its work is fine, but a warning Getting is the Boolean value in the switch state

  selected cells; - (zero) Age view {Switch (selected) {Case 0: Age view = [[UIView alloc] initWithFrame: CGRectMake (26, 110, 100, 135)]; Ageview.backgroundColor = [UIColor whiteColor]; [Self.view addSubview: ageview]; Selected = 1; break; Case 1: [Age view sethead: yes]; Selected = 0; break; Default: Break; }}  

Objective-c in switch statement Int value

and about your working code, TRUE / YES is equal to

Code> 1 and FALSE / NO is equal to 0 .


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -