본문 바로가기

iOS/Mac7

[iOS] Camera 기능 호출하기 및 Landscape 만 지원할때 해결책 가로만 지원하는 App의 경우 아래의 코드와 같이 UIImagePickerController 를 이용하여 카메라 기능을 호출하면이런 에러가 발생된다. ㅡ.ㅡ; (ios 6.0 버그라는데 6.1로 설정해도 마찬가지로 발생했다. ㅠ.ㅠ) Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES // 카메라 앱 구동 방법- (void)callCamera{ NSLog(@"카메라 구동"); UIImagePickerController* picker = [[UIImagePickerController alloc]init]; picker.delegate = (id)self; picke.. 2014. 1. 9.
[iOS] Camera App 만드는 방법 출처: http://www.appcoda.com/ios-programming-camera-iphone-app/프로젝트 소스: Build a Simple Camera App Using UIImagePickerController Previously, we covered how to use the built-in APIs to read a RSS feed and build a simple RSS Reader app. In this tutorial, we are going to learn how to use the built-in camera of the iPhone (or the iPod or iPad, if they have one) to take a photo. Also, we’ll see how to a.. 2014. 1. 9.
app에서 App Store 실행하기 1. 특정 App 상세설명 화면으로 이동하기 NSString *myAppID = @"686296101"; NSString *url = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", myAppID]; //iOS7 doesn't approve above format so add iOS7 specific format if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) { url = [NSString stringWithFormat: @"itms.. 2013. 12. 20.
Apple URL Scheme Reference Apple URL SchemeReference 첨부파일 참조 // 지도표시 - 정상url = @"http://maps.apple.com/?q=cupertino"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]]; 2013. 12. 20.
XIB만 추가하여 iPhone, iPad 지원하는 방법 XIB 형식으로 화면 Layout을 구성한 프로젝트의 경우ViewController 소스부분은 그대로 둔채로XIB 파일만 추가하여 iPhone 또는 iPad를 추가로 지원할 수 있다. 새 파일 --> User Interface 선택하여 XIB 파일을 하나 추가한 후AppDelegate.m 의 didFinishLaunchingWithOptions 함수를 아래와 같이 수정한다. UIViewController* controller = [[UIViewController alloc] initWithNibName:UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ? @"YourViewController-iPad" : @"YourViewController" andBundl.. 2013. 12. 6.
[iOS] XIB 이용한 SingleView 만들기 1.AppDelegate.h에 #import @class ViewController; @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) ViewController *viewController; @end 2. AppDelegate.m 에#import "AppDelegate.h"#import "ViewController.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchO.. 2013. 11. 30.
새로운 OS X Mavericks 가을에 출시 예정 새로운 OS X Mavericks 가을에 출시 된답니다.바뀐 부분에 대해서는 전문가분이 정말 자세하게 작성한 블로그가 있네요.링크: http://macnews.tistory.com/1272 링크: http://www.apple.com/kr/osx/preview/ 개발자 Preview 버전도 배포되고 있네요. XCode 5와 함께.https://developer.apple.com/osx/whats-new/ 2013. 10. 3.