iPhone
iOS CLLocationManager 바뀐점 8.0
iOS CLLocationManager 바뀐점 8.0 .plist 파일에 다음 항목 추가NSLocationWhenInUseUsageDescriptionNSLocationAlwaysUsageDescriptionstring 값으로 위치 사용에 대한 안내문을 적어놓으면됨 (예: 사용자의 현재 위치를 받아옵니다) 사용자 현재 위치 허용에 대한 승인을 받는다 if ([locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) [locationManager requestWhenInUseAuthorization]; if ([locationManager respondsToSelector:@selector(requestAlwaysAuthor..
playing NSSound asynchronously
there seem to be almost no posts on playing one NSSound multiple times aynchrosnouslywell this is how below sound is NSSound objectNSSound *sound; - (void)playSound { [[[sound copy] autorelease] play]; } by copying the object you can play one sound many times overlappinguse method below to do something when the sound stops ad set sound as delegate - (void)sound:(NSSound *)asound didFinishPlaying..
ios version check
int version = [[[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."] objectAtIndex:0] intValue]; if (7
ios7 setting status bar style
change UIStatusBarStyleLightContent to whatever you prefer @interface UINavigationController(CustomBarStyle) @end @implementation UINavigationController(CustomBarStyle) - (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent;// return self.topViewController.preferredStatusBarStyle;} @end
아이폰 가격에 대하여
http://www.bluecloudsolutions.com/blog/cost-develop-app/대충 가격대가 얼마정도 하는지 알 수 있습니다물론 서비스의 복잡도에 따라 크게 달라질수도 있습니다조만간 번역 할 수 있도록......까먹지만 않으면..
presentviewcontroller ModalViewController on NavigationViewController error
ios7 i got this error" Attemp to present on which is not on the window hierarchy" I can fix this problem by presentviewcontroller directly to UIApplication's rootViewController but this time it didn't appear whatever I did.I found out the problem was navigationbarhiddenwhen navigationbarhidden is set to truesomehow on ios7 presentviewcontroller (modalviewcontroller) doesn't seem to work
xcode 4.5 armv6 에러
은행권 혹은 공공기관쪽 관련 일하시는분들 많이 격는 에러일겁니다4.3 이상을 지원한다는 전제 하에 픽스를 합니다Project>targets>build settings>ArchitecturesStandard(armv7, armv7s) 를 armv7 으로 바꿔줍니다Valid Architecture 역시 armv7 으로 바꿔줍니다 기존에 armv6와 armv7을 지원하던 4버젼대에 비해지금은 armv7과 armv7s 을 지원하기때문에 생기는 에러입니다4.3이하의 버젼을 호환하실꺼면 앱을 두개 내야됩니다 또 다른 방법으로는 c언어딴의 라이브러리 참조한걸 다 최신버젼으로 바꿔주시면됩니다(보통 참조한 c언어딴의 라이브러리는 mdm같은 솔루션일겁니다이방법은 그쪽 회사에서 바꾸지 않는한 불가능합니다)
[xcode] 회전 후 버튼이 반응을 안할때
after rotation uibutton doesn't respondif you used xib+coding sometimes buttons and touches don't respondopen xib file and turn off autoresize subviews in attibutes inspector of parent views xib 파일을 열어서 버튼의 상위 뷰들의 autoresize subviews를 체크 해제하세요
아이폰 개발시 필요한 이미지 사이즈
아이폰 필요한 이미지픽셀단위 아이콘iPhone:57x57레티나:114x114등록용:512x512등록용:1024x1024iPad:72x72레티나:144x144 아이폰 메인 이미지(처음 킬때화면 없어도됩니다)3gs : 320x4804gs : 640x9605 : 640x1136 아이폰 웹뷰 사이즈3gs : 320x4604gs : 640x9205 : 640x1096 아이패드 웹뷰사이즈, 메인이미지아이패드(세로)768x10041536x2008아이패드(가로)1024x7482048x1496
image masking
CGImageRef myMaskedImage; const float myMaskingColors[6] = {124, 255, 68, 222, 0, 165}; myColorMaskedImage = CGImageCreateWithMaskingColors (image, myMaskingColors); CGContextDrawImage (context, myContextRect, myColorMaskedImage); CGImageRef myMaskedImage; const float myMaskingColors[6] = { 0, 124, 0, 68, 0, 0 }; myColorMaskedImage = CGImageCreateWithMaskingColors (image, myMaskingColors); CGCon..
iphone
// 세로 if (toInterfaceOrientation == UIInterfaceOrientationPortrait || toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown){ NSLog(@"vertical"); rect = CGRectMake(0.0, 0.0, 1024.0, 768.0); topMBar.frame = CGRectMake(0.0, 0.0, 1024.0, 44.0); // 가로 } else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || toInterfaceOrientation == UIInterfaceOrientationLandscapeRigh..