contact: [email protected]
seen from Estonia
seen from Canada

seen from Russia

seen from Canada
seen from Germany
seen from United States
seen from United States

seen from Martinique

seen from Sweden
seen from United States
seen from Brazil
seen from United Kingdom
seen from Canada

seen from United States
seen from United States

seen from United Kingdom

seen from Malaysia

seen from Malaysia
seen from United States
seen from Netherlands
contact: [email protected]
another upbeat drum n bass song :)
Three20 - Need (by AestheticTracks)
Three20 + iPad on iOS 6 launch in landscape mode
Previously I posted an article regrading modifying Three20 code to support rotation on iOS 6 applications. (Three20 + iOS 6 Rotation)Â
Here I'm going to post another issue caused by Three20 and the solution.
The issue only happens on iPad running iOS 6 and launching in landscape mode. The reason is on iPad the status bar could be in landscape mode before launching the app. And that causes Three20 apps to create an incorrect size of root window.
Here is the solution (with diff). Modify -(UIWindow*)window in TTBaseNavigator.mÂ
- (UIWindow*)window { if (nil == _window) { UIWindow* keyWindow = [UIApplication sharedApplication].keyWindow; if (nil != keyWindow) { _window = [keyWindow retain]; } else { - _window = [[[self windowClass] alloc] initWithFrame:TTScreenBounds()]; + _window = [[[self windowClass] alloc] initWithFrame: + [UIScreen mainScreen].bounds]; [_window makeKeyAndVisible]; } } return _window; }
And also to support rotation, you need to do 1. and 3. in this post (Three20 + iOS 6 Rotation). And not necessary to do 2. Instead you could do the following change.
Modify setRootViewController in TTBaseNavigator.m (with diff)
- (void)setRootViewController:(UIViewController*)controller { if (controller != _rootViewController) { [_rootViewController release]; _rootViewController = [controller retain]; if (nil != _rootContainer) { [_rootContainer navigator:self setRootViewController:_rootViewController]; } else { - [self.window addSubview:_rootViewController.view]; + if ([self.window respondsToSelector:@selector(setRootViewController:)]) { + [self.window setRootViewController:_rootViewController]; + } + else { + [self.window addSubview:_rootViewController.view]; + } } } }
Three20 + iOS 6 Rotation
1. Add the following code in TTNavigationController.m
- (BOOL)shouldAutorotate { BOOL result = YES; if (self.topViewController != nil && [self.topViewController respondsToSelector:(@selector(shouldAutorotate))]) { result = [self.topViewController shouldAutorotate]; } return result; } - (NSUInteger)supportedInterfaceOrientations { NSUInteger result = UIInterfaceOrientationMaskPortrait; if (self.topViewController != nil && [self.topViewController respondsToSelector:(@selector(supportedInterfaceOrientations))]) { result = [self.topViewController supportedInterfaceOrientations]; } return result; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { UIInterfaceOrientation result = UIInterfaceOrientationPortrait; if (self.topViewController != nil && [self.topViewController respondsToSelector:( @selector(preferredInterfaceOrientationForPresentation))]) { result = [self.topViewController preferredInterfaceOrientationForPresentation]; } return result; }
2. Add the [[[UIApplication sharedApplication] keyWindow] setRootViewController:[ [TTNavigator navigator] rootViewController]] after openURLAction
TTNavigator* navigator = [TTNavigator navigator]; [navigator openURLAction:[TTURLAction actionWithURLPath:SOME_URL_STRING]]; [[[UIApplication sharedApplication] keyWindow] setRootViewController:[navigator rootViewController]];
3. Implement iOS 6 rotation functions in your view controller
- (BOOL)shouldAutorotate; - (NSUInteger)supportedInterfaceOrientations; - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation;
Flash Cartel - Elevate(Three20 Remix) This song sounds like an arcade :3 but not as 8bit ;D
just a good song
Syknyk's Top Ten - 27/09/2012 - Updated Weekly
10. Flash Cartel – Elevate - Three20 Remix 09. Dr Philth – Weed Whacker 08. DJ Shadow – Scale It Back - Calyx & Tee Bee Remix 07. Aami – Igniter 06. Pixel Fist – Let Yourself Go 05. Subscape – A Lot To Learn 04. Plastician – Retro 03. Freq Nasty – Beethoven's Filth 02. Plan B – Deepest Shame - Andy C Remix 01. Michael Jackson – Speed Demon (Remix by Nero)
My 2012Â - So Far