Skip to content

Commit

Permalink
fixed for iphone
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRevell committed Oct 10, 2013
1 parent d95307c commit b17a776
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions DialogViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#import "PokemonPickerViewController.h"
#import "MATrainer.h"


@interface DialogViewController ()
@property (strong, nonatomic) UIViewController *nextViewController;
@property (strong, nonatomic) IBOutlet UIImageView *computer;
Expand Down
2 changes: 2 additions & 0 deletions Pokemon.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@
INFOPLIST_FILE = "Pokemon/Pokemon-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
SPRITEKIT_TEXTURE_ATLAS_OUTPUT = YES;
TARGETED_DEVICE_FAMILY = 1;
WRAPPER_EXTENSION = app;
};
name = Debug;
Expand All @@ -507,6 +508,7 @@
INFOPLIST_FILE = "Pokemon/Pokemon-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
SPRITEKIT_TEXTURE_ATLAS_OUTPUT = YES;
TARGETED_DEVICE_FAMILY = 1;
WRAPPER_EXTENSION = app;
};
name = Release;
Expand Down
4 changes: 3 additions & 1 deletion Pokemon/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
//self.window.rootViewController = [[BattleViewController alloc] initWithNibName:@"BattleView" bundle:nil];
//self.window.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"dqni4j.jpg"]];

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.rootViewController = [[DialogViewController alloc] initWithNibName:@"DialogViewController" bundle:nil];
self.window.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"dqni4j.jpg"]];
//self.window.rootViewController = [[PokemonPickerViewController alloc] initWithNibName:@"PokemonPickerViewController" bundle:nil];
[self.window.rootViewController addObserver:self forKeyPath:@"nextViewController" options:NSKeyValueObservingOptionNew context:NULL];
//[self.window.rootViewController addObserver:self forKeyPath:@"nextViewController" options:NSKeyValueObservingOptionNew context:NULL];
// self.window.backgroundColor = [UIColor redColor];
// Override point for customization after application launch.
[self.window makeKeyAndVisible];
return YES;
}

Expand Down
2 changes: 0 additions & 2 deletions Pokemon/Pokemon-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
Expand Down

0 comments on commit b17a776

Please sign in to comment.