This file contains 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
Under Build Phases ---> Compile sources, | |
Double click on a file and add this flag to disable ARC on that particular file: | |
-fno-objc-arc |
This file contains 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
// implement the following code in AppDelegate.m | |
// implement a dummy method "canRotate" in the ViewController that you want to rotate | |
#pragma mark - Rotation methods | |
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { | |
// Get topmost/visible view controller | |
UIViewController *currentViewController = [self topViewController]; | |
This file contains 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
// resize UIImages | |
https://github.com/mustangostang/UIImage-ResizeMagick | |
// style practices | |
https://github.com/raywenderlich/objective-c-style-guide | |
// custom tab bar controller | |
https://github.com/levey/LeveyTabBarController |
This file contains 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
// | |
// SejoPaddingLabel.h | |
// GiftyOne | |
// | |
// Created by Esense-33 on 18/07/14. | |
// Copyright (c) 2014 GiftyOne. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains 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
// | |
// GolopoTextField.h | |
// Golopo | |
// | |
// Created by Esense-15 on 05/09/14. | |
// Copyright (c) 2014 esense. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains 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
// | |
// UIApplication+AppDimensions.m | |
// GolfByJordan | |
// | |
// Created by sudeep on 26/08/14. | |
// Copyright (c) 2014 Esense. All rights reserved. | |
// | |
#import "UIApplication+AppDimensions.h" |
This file contains 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
// | |
// UIImage+Mask.h | |
// Golopo | |
// | |
// Created by Esense-15 on 22/09/14. | |
// Copyright (c) 2014 esense. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains 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
Stuck at authenticating with iTunes store: | |
Go to: Applications > Xcode > Contents > Applications > Application Loader > Contents > MacOS > itms > java > lib - Open net.properties with TextEdit and change the line # https.proxyPort=443 to # https.proxyPort=80 | |
Link: http://stackoverflow.com/questions/18971710/application-loader-stuck-at-the-stage-of-authenticating-with-the-itunes-store |
This file contains 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
+ (BOOL)validateForEmail:(NSString *)email { | |
NSString *regExPattern = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; | |
NSRegularExpression *regEx = [[NSRegularExpression alloc] initWithPattern:regExPattern options:NSRegularExpressionCaseInsensitive error:nil]; | |
NSUInteger regExMatches = [regEx numberOfMatchesInString:email options:0 range:NSMakeRange(0, email.length)]; | |
if (regExMatches == 0) { | |
return NO; | |
} else { | |
return YES; |
This file contains 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
+ (instancetype)sharedManager { | |
static ClassName *sharedManager = nil; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
sharedManager = [[self alloc] init]; | |
}); | |
return sharedManager; | |
} |
OlderNewer