Permalink
Browse files

Implemented sample camera application.

  • Loading branch information...
1 parent 408d99c commit b84d9814eb7f5d4b560fd82d3d696f8f46e07fc1 @kent013 committed Mar 7, 2012
View
@@ -1 +1,2 @@
-xcuserdata
+xcuserdata
+.DS_Store
@@ -229,6 +229,7 @@
7901AC4F15067CAB003DA0DC /* twitter_32@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7901ABB815067CAA003DA0DC /* twitter_32@2x.png */; };
7901AC5015067CAB003DA0DC /* TwitterPhotoSubmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 7901ABBA15067CAA003DA0DC /* TwitterPhotoSubmitter.m */; };
7901AC5115067CAB003DA0DC /* TwitterPhotoSubmitterSettingTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7901ABBC15067CAA003DA0DC /* TwitterPhotoSubmitterSettingTableViewController.m */; };
+ 7901B05915076E82003DA0DC /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7901B05815076E82003DA0DC /* MainViewController.m */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -989,6 +990,8 @@
7901ABBA15067CAA003DA0DC /* TwitterPhotoSubmitter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TwitterPhotoSubmitter.m; sourceTree = "<group>"; };
7901ABBB15067CAA003DA0DC /* TwitterPhotoSubmitterSettingTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TwitterPhotoSubmitterSettingTableViewController.h; sourceTree = "<group>"; };
7901ABBC15067CAA003DA0DC /* TwitterPhotoSubmitterSettingTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TwitterPhotoSubmitterSettingTableViewController.m; sourceTree = "<group>"; };
+ 7901B05715076E82003DA0DC /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = "<group>"; };
+ 7901B05815076E82003DA0DC /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -1073,9 +1076,11 @@
7901A06E1505F4B7003DA0DC /* PhotoSubmitterExample */ = {
isa = PBXGroup;
children = (
+ 7901A06F1505F4B7003DA0DC /* Supporting Files */,
7901A0771505F4B7003DA0DC /* AppDelegate.h */,
7901A0781505F4B7003DA0DC /* AppDelegate.m */,
- 7901A06F1505F4B7003DA0DC /* Supporting Files */,
+ 7901B05715076E82003DA0DC /* MainViewController.h */,
+ 7901B05815076E82003DA0DC /* MainViewController.m */,
);
path = PhotoSubmitterExample;
sourceTree = "<group>";
@@ -2807,6 +2812,7 @@
7901AC4715067CAB003DA0DC /* PicasaPhotoSubmitter.m in Sources */,
7901AC5015067CAB003DA0DC /* TwitterPhotoSubmitter.m in Sources */,
7901AC5115067CAB003DA0DC /* TwitterPhotoSubmitterSettingTableViewController.m in Sources */,
+ 7901B05915076E82003DA0DC /* MainViewController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -3,13 +3,14 @@
// PhotoSubmitterExample
//
// Created by Kentaro ISHITOYA on 12/03/06.
-// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2012 Kentaro ISHITOYA. All rights reserved.
//
#import <UIKit/UIKit.h>
+#import "MainViewController.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
-
+@property (strong, nonatomic) MainViewController *mainViewController;
@end
@@ -3,24 +3,35 @@
// PhotoSubmitterExample
//
// Created by Kentaro ISHITOYA on 12/03/06.
-// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2012 Kentaro ISHITOYA. All rights reserved.
//
#import "AppDelegate.h"
@implementation AppDelegate
@synthesize window = _window;
+@synthesize mainViewController = _mainViewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
+ _mainViewController = [[MainViewController alloc] init];
+ self.window.rootViewController = self.mainViewController;
[self.window makeKeyAndVisible];
return YES;
}
+/*!
+ * OAuth delegate
+ */
+- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
+ sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
+ return [[PhotoSubmitterManager sharedInstance] didOpenURL:url];
+}
+
- (void)applicationWillResignActive:(UIApplication *)application
{
/*
@@ -3,7 +3,7 @@
// PhotoSubmitterExample
//
// Created by Kentaro ISHITOYA on 12/03/06.
-// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2012 Kentaro ISHITOYA. All rights reserved.
//
#import <UIKit/UIKit.h>
@@ -3,7 +3,7 @@
// PhotoSubmitterExampleTests
//
// Created by Kentaro ISHITOYA on 12/03/06.
-// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2012 Kentaro ISHITOYA. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
@@ -3,7 +3,7 @@
// PhotoSubmitterExampleTests
//
// Created by Kentaro ISHITOYA on 12/03/06.
-// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2012 Kentaro ISHITOYA. All rights reserved.
//
#import "PhotoSubmitterExampleTests.h"

0 comments on commit b84d981

Please sign in to comment.