Skip to content
Browse files

- iOS 6.0 support

- Project updated to Xcode 4.5
  • Loading branch information...
1 parent 0da07a8 commit 4ec2506c388fbec65a3ff7036bd869126d17af92 @tonisalae committed
View
28 TSMiniWebBrowser/TSMiniWebBrowser.m
@@ -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
@@ -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
View
2 TSMiniWebBrowserDemo/AppDelegate.m
@@ -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]];
View
6 TSMiniWebBrowserDemo/TSMiniWebBrowserDemo-Info.plist
@@ -23,7 +23,7 @@
<string>icon@2x.png</string>
</array>
<key>UIPrerenderedIcon</key>
- <false/>
+ <true/>
</dict>
</dict>
<key>CFBundleIdentifier</key>
@@ -42,6 +42,8 @@
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
+ <key>UIPrerenderedIcon</key>
+ <true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
@@ -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.
Something went wrong with that request. Please try again.