!-------------
'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
!---------------
UIAlertView *prompt = [[UIAlertView alloc] initWithTitle:@"업체지정"
message:@""
delegate:self
cancelButtonTitle:@"취소"
otherButtonTitles:nil];
--->
UIAlertController * prompt = [UIAlertController
alertControllerWithTitle:@"업체지정"
message:@""
preferredStyle:UIAlertControllerStyleAlert];
!-------------
Property 'delegate' not found on object of type 'UIAlertController *'
deleting-
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
prompt.delegate = self;
[prompt addButtonWithTitle:[NSString stringWithFormat:@"%@ / %@", data.nm_dfct_ctyp, data.nm_cpny]];
[prompt setTag:5];
prompt.alertViewStyle = UIAlertViewStyleDefault;
[prompt show];
->
UIAlertAction* btn4adding = [UIAlertAction
actionWithTitle:[NSString stringWithFormat:@"%@ / %@", data.nm_dfct_ctyp, data.nm_cpny]
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action) {
//what to do that is works in "delegates"
}];
[prompt addAction:btn4adding];
button index는 counter 써서 해결
Sending 'UIAlertAction *' to parameter of incompatible type 'void (^ _Nullable)(UIAlertAction * _Nonnull __strong)'
!--------------------------
Could not insert new outlet connection: Could not find any information for the class named ...ViewController
Xcode 닫았다가 열면 됨.
!-----------------------------------------
- (IBAction)onClickRealNagam:(id)sender {
if(self.mSegmentalnagam.selectedSegmentIndex ==0) {
mCanYouSeeThisSword = @"H";
} else if(self.mSegmentalnagam.selectedSegmentIndex ==1) {
mCanYouSeeThisSword = @"P";
}
[self initializeData];
[self everybodyPutYourHandsUp:mChkFlor];
[self everybodyPutYourHandsUp:mChkLin];
[self everybodyPutYourHandsUp:mChkCtyp];
}
개떡같은 기획으로 재미없는 일을 할 때 재미를 찾는 방법.
080
반응형
반응형
최근댓글