Skip to content

Commit

Permalink
- iOS 6.0 support
Browse files Browse the repository at this point in the history
- Project updated to Xcode 4.5
  • Loading branch information
tonisalae committed Sep 24, 2012
1 parent 0da07a8 commit 4ec2506
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 28 deletions.
28 changes: 4 additions & 24 deletions TSMiniWebBrowser/TSMiniWebBrowser.m
Expand Up @@ -40,8 +40,10 @@ @implementation TSMiniWebBrowser
#define kToolBarHeight 44
#define kTabBarHeight 49

#define kSafariButtonIndex 0
#define kChromeButtonIndex 1
enum actionSheetButtonIndex {
kSafariButtonIndex,
kChromeButtonIndex,
};

#pragma mark - Private Methods

Expand Down Expand Up @@ -83,28 +85,6 @@ -(void) dismissController {
}
}

/*-(void) setStatusBarStyle
{
UIStatusBarStyle statusStyle = UIStatusBarStyleDefault;
switch (barStyle) {
case UIBarStyleDefault:
statusStyle = UIStatusBarStyleDefault;
break;
case UIBarStyleBlack:
case UIBarStyleBlackOpaque:
statusStyle = UIStatusBarStyleBlackOpaque;
break;
case UIBarStyleBlackTranslucent:
statusStyle = UIStatusBarStyleBlackTranslucent;
break;
default:
break;
}
}*/

//Added in the dealloc method to remove the webview delegate, because if you use this in a navigation controller
//TSMiniWebBrowser can get deallocated while the page is still loading and the web view will call its delegate-- resulting in a crash
-(void)dealloc
Expand Down
2 changes: 1 addition & 1 deletion TSMiniWebBrowserDemo/AppDelegate.m
Expand Up @@ -38,7 +38,7 @@ @implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
BOOL wantTabBarDemo = YES;
BOOL wantTabBarDemo = NO;

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

Expand Down
6 changes: 3 additions & 3 deletions TSMiniWebBrowserDemo/TSMiniWebBrowserDemo-Info.plist
Expand Up @@ -23,7 +23,7 @@
<string>icon@2x.png</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
<true/>
</dict>
</dict>
<key>CFBundleIdentifier</key>
Expand All @@ -42,6 +42,8 @@
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIPrerenderedIcon</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
Expand All @@ -52,7 +54,5 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIPrerenderedIcon</key>
<true/>
</dict>
</plist>

0 comments on commit 4ec2506

Please sign in to comment.