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
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
Post a Comment