Level : WORDPRESS BOOK LINKEDIN PATENT Send Mail 동냥하기 hajunho.com

080

살며 생각하며, / / 2020. 2. 7. 10:43
반응형

!-------------
'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];
}
개떡같은 기획으로 재미없는 일을 할 때 재미를 찾는 방법.

반응형

'살며 생각하며,' 카테고리의 다른 글

082 클라우드 업체 선정 외  (0) 2020.02.08
081  (0) 2020.02.08
079  (0) 2020.01.21
078  (0) 2020.01.20
077  (0) 2020.01.09
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기