UIActionSheet
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:[NSString stringWithFormat:@"%@%@점검 건을 전송 후 사용하십시요.\n미 전송 시는 해당 자료가 삭제됩니다.", sI, sU] delegate:self cancelButtonTitle:@"아니오" destructiveButtonTitle:@"예" otherButtonTitles:nil];
actionSheet.tag = 1;
[actionSheet showInView:self.view];
@interface GlobalVar : NSObject<UIAlertViewDelegate> {
NSString *appId;
NSDate *loginDate; // 로그인 일자
NSDate *sessionDate; // 세션시작 시간
NSInteger sessionTimeout; // 세션Timeout(분)
BOOL onFlagVrfChkList;
UserInfo *userInfo;
DDTBT_SITE *userSelectionSiteInformation;
//global datas
NSMutableArray *globalAPlist;
UINavigationController *globalNavigationController;
NSInteger *globalcounterofstack4frontview;
UIBarButtonItem *globalHamberger;
NSString *globalCanYouSeeThisSword;
}
+ (void)alertMsgOKWithTitle:(NSString *)title message:(NSString *)message;
+ (void)alertMsgOKWithTitle:(NSString *)title message:(NSString *)message wait:(BOOL)isWait;
@end
+ (void)alertMsgOKWithTitle:(NSString *)title message:(NSString *)message {
[self alertMsgOKWithTitle:title message:message wait:NO];
}
+ (void)alertMsgOKWithTitle:(NSString *)title message:(NSString *)message wait:(BOOL)isWait {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:message delegate:nil cancelButtonTitle:@"확인" otherButtonTitles:nil];
[alert show];
if (YES == isWait) {
//버튼 누르기전까지 지연.
while (alert.hidden == NO && alert.superview != nil)
[[NSRunLoop mainRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01f]];
}
}
'HJH IT Logs' 카테고리의 다른 글
List (0) | 2021.05.18 |
---|---|
List (0) | 2021.05.18 |
UINavigationBar (0) | 2021.05.18 |
SOAP protocol (0) | 2021.05.18 |
자주 쓰는 팝업 구현방법, 그리고 데이터 넘기기 (0) | 2021.05.18 |
최근댓글