This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void) backgroundParallaxEffect { | |
| // Set vertical effect | |
| UIInterpolatingMotionEffect *verticalMotionEffect = | |
| [[UIInterpolatingMotionEffect alloc] | |
| initWithKeyPath:@"center.y" | |
| type:UIInterpolatingMotionEffectTypeTiltAlongVerticalAxis]; | |
| verticalMotionEffect.minimumRelativeValue = @(-10); | |
| verticalMotionEffect.maximumRelativeValue = @(10); | |
| // Set horizontal effect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| matchQueue = dispatch_queue_create("com.nuevatel.WorldCupApp", NULL); | |
| dispatch_async(matchQueue, ^{ | |
| DashBoardResponse *dash = [WSManager getDashBoard]; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.contentViewController.view.superview.backgroundColor = [UIColor clearColor]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| destinationController.hidesBottomBarWhenPushed = YES; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Hide the title for Back Button in Navigation Controller | |
| self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let btnBack = UIBarButtonItem(title: "", style: .Plain, target: self, action: nil) | |
| self.navigationController?.navigationBar.topItem?.backBarButtonItem = btnBack | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.navigationController.navigationBar.topItem.title = _venue.name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat /etc/issue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1. First Create a Dummy UIViewController that has a root relation with the UITabBarController | |
| // 2. Make this controller implement a UITabBarControllerDelegate | |
| // 3. In ViewDidLoad: | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| self.tabBarController?.delegate = self | |
| } | |
| // 4. Implement this delegate method: | |
| func tabBarController(tabBarController: UITabBarController, didSelectViewController viewController: UIViewController) { | |
| let isModalTab = viewController == self |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSLog("Filename: " + NSStringFromClass(self.dynamicType)) |
OlderNewer