Created
January 14, 2014 18:52
-
-
Save kishikawakatsumi/8423638 to your computer and use it in GitHub Desktop.
One-line fix for UITextView on iOS 7
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
#import <UIKit/UIKit.h> | |
#import "AppDelegate.h" | |
int main(int argc, char * argv[]) | |
{ | |
@autoreleasepool { | |
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"UIDisableLegacyTextView"]; | |
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably this force to use
_UICompatibilityTextView
class insteadUITextView
._UICompatibilityTextView
is the same as iOS 6'sUITextView
.