我想隱藏UIButton,但它並未被隱藏。在相同的代碼中,我成功隱藏了UILabel。我的代碼中有什麼錯誤?UIButton不被隱藏在iphone應用程序中
if ([typeOne isEqualToString:@"DDWC"]) {
questionButtonTwo.hidden=YES;
questionButtonTwoTwo.hidden=YES;
questionButtonTwoThree.hidden=YES;
questionButtonTwoFour.hidden=YES;
questionButtonTwoFive.hidden=YES;
questionButtonTwoSix.hidden=YES;
questionButtonTwoSeven.hidden=YES;
questionButtonTwoEight.hidden=YES;
checkLableTwo.hidden=NO;
checkLableTwoTwo.hidden=NO;
checkLableTwoThree.hidden=NO;
checkLableTwoFour.hidden=NO;
checkLableTwoFive.hidden=NO;
checkLableTwoSix.hidden=NO;
checkLableTwoSeven.hidden=NO;
checkLableTwoEight.hidden=NO;
}
檢查if條件是否爲真 – Neo
是的這是真的其他爲什麼標籤代碼在這裏工作 –
你說你隱藏你的標籤,但你的代碼是label.hidden = NO; – Neo