[ios] NSString 문자열 삽입 UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"알림" message:[NSString stringWithFormat:@"\n%@\n어쩌구 저쩌구.","첨가할 텍스트 또는 변수"] delegate:self cancelButtonTitle:@"취소" otherButtonTitles:@"이동",nil]; Scrapbook/개발 및 프로그래밍 2013.10.25
[iOS] 웹뷰 스크롤 방지 간단하게 myWebView.scrollView.bounces = NO; ^^ Stop UIWebView from "bouncing" vertically? Scrapbook/개발 및 프로그래밍 2013.10.16
[iOS] 웹뷰 백그라운드 투명 처리 웹뷰의 html을 라운드 형태로 디자인 한후 팝업 등으로 사용할 때 배경의 투명 처리가 필요한데 그때 사용하면 굿! - (void)makeBodyBackgoundTransparent { for (UIView *subview in [webView subviews]) { [subview setOpaque:NO]; [subview setBackgroundColor:[UIColor clearColor]]; } [webView setOpaque:NO]; [webView setBackgroundColor:[UIColor clearColor]]; } 구글링의 힘은 역시나 크다. 네이버는 너무 빈약~ Scrapbook/개발 및 프로그래밍 2013.10.16
[IOS] 화면 강제 밝기 후 이전 밝기 설정 복원 유지보수 하는 앱에서 고객이 편의점에 모바일 바코드를 제시할 때 가장 밝은 밝기로 보여주고 꺼지기 않게 해달라는 오더가 있어 아래와 같이 처리.헤더 파일에 우선 CGFloat oldBrightness;정의 후 - (void) viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; if ([[UIScreen mainScreen] respondsToSelector:@selector(brightness)]) { [[UIScreen mainScreen] setBrightness:oldBrightness]; } } - (void)viewDidLoad { [super viewDidLoad]; oldBrightness = [[UIScreen ma.. Scrapbook/개발 및 프로그래밍 2013.10.11