Created
November 11, 2014 07:18
-
-
Save uzysjung/e5cad519913643701308 to your computer and use it in GitHub Desktop.
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
// | |
// NSLocale+ios8_1.m | |
// | |
// Created by Uzysjung on 2014. 11. 11.. | |
// Copyright (c) 2014년 SKPlanet. All rights reserved. | |
// | |
#if TARGET_IPHONE_SIMULATOR | |
#import "NSLocale+ios8_1.h" | |
#import <objc/runtime.h> | |
@implementation NSLocale (iOS8_1) | |
+ (void)load | |
{ | |
Method originalMethod = class_getClassMethod(self, @selector(currentLocale)); | |
Method swizzledMethod = class_getClassMethod(self, @selector(swizzle_currentLocale)); | |
method_exchangeImplementations(originalMethod, swizzledMethod); | |
} | |
+ (NSLocale*)swizzle_currentLocale | |
{ | |
return [NSLocale localeWithLocaleIdentifier:@"ko_KR"]; | |
} | |
@end | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment