'toolbar'에 해당되는 글 2건

  1. 2010.10.12 toolbar button enabled, disabled
  2. 2010.09.16 toolbar 버튼 enabled, disabled
아이폰어플개발정보2010. 10. 12. 05:06
toolbar button enabled, disabled

/**

 Conditionally enable the Add button:

 If the location manager is generating updates, then enable the button;

 If the location manager is failing, then disable the button.

 */

- (void)locationManager:(CLLocationManager *)manager

    didUpdateToLocation:(CLLocation *)newLocation

           fromLocation:(CLLocation *)oldLocation {

    if (!self.editing) {

addButton.enabled = YES;

}

}


- (void)locationManager:(CLLocationManager *)manager

       didFailWithError:(NSError *)error {

    addButton.enabled = NO;

}

Posted by 오늘마감

댓글을 달아 주세요

아이폰어플개발정보2010. 9. 16. 23:59
toolbar 버튼 enabled, disabled

/**

 Conditionally enable the Add button:

 If the location manager is generating updates, then enable the button;

 If the location manager is failing, then disable the button.

 */

- (void)locationManager:(CLLocationManager *)manager

    didUpdateToLocation:(CLLocation *)newLocation

           fromLocation:(CLLocation *)oldLocation {

    if (!self.editing) {

addButton.enabled = YES;

}

}

- (void)locationManager:(CLLocationManager *)manager

       didFailWithError:(NSError *)error {

    addButton.enabled = NO;

}



출처 : http://blog.naver.com/PostList.nhn?blogId=philipousys¤tPage=26
Posted by 오늘마감

댓글을 달아 주세요