본문 바로가기

커밋하자150

error [iOS] method possibly missing a super dealloc call - (void)dealloc{ [self stopNotifier]; if (_reachabilityRef != NULL) { CFRelease(_reachabilityRef); } [super dealloc]; } [super dealloc]; 추가 ㅡ0ㅡ 2015. 12. 17.
iOS Open Source [iOS] 출처 : http://rainyi.net/tc/ http://michael.stapelberg.de/cCSVParse http://www.cocoacontrols.com/platforms/ios/controls/ddpagecontrol http://iphonedevelopment.blogspot.com/2010/05/custom-alert-views.htmlhttp://joris.kluivers.nl/iphone-dev/?p=CustomAlert: ID/PW 입력http://stackoverflow.com/questions/833392/showing-a-alertview-with-a-textbox-in-iphonehttp://www.cocoacontrols.com/platforms/ios/controls.. 2015. 12. 17.
iPhone, ipad 화면 가로, 세로 고정 [ios] 아이폰을 개발하다 보면 회전을 한다든지 세로 또는 가로 고정으로 해야 할 때가 있습니다. 아래 코드는 UIViewController 에서 모든 방향으로 회전이 가능한 코드입니다. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return YES; } UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight retu.. 2015. 12. 17.
인코딩 (UTF-8) [ios] 출처 : http://www.cocoadev.co.kr/tag/RSS HTTP 로 데이터를 전송 받을 때 한글이 깨어지는 경우가 있었다. 아래와 같이 넘어온 데이터의 인코딩을 변경 해 주면 된다 receiveData 는 HTTP 요청 후 받은 데이터(NSData) NSString *str = [[NSString alloc] initWithData:receiveData encoding:0x80000000 + kCFStringEncodingDOSKorean]; NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding]; 다시 NSString으로 변경 해서 출력 해 보면 잘 나온다. 2015. 12. 17.