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
{ | |
"images" : [ | |
{ | |
"size" : "20x20", | |
"idiom" : "iphone", | |
"filename" : "Icon-Spotlight-40.png", | |
"scale" : "2x" | |
}, | |
{ | |
"size" : "20x20", |
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
while (YES) | |
{ | |
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; | |
} |
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
You can do the following to use different versions: | |
pod _0.34.4_ install | |
or | |
pod _0.34.1_ install |
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)setDefaultWebViewUserAgent | |
{ | |
// Get Default UserAgent. | |
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero]; | |
NSString *agent = [webView stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"]; | |
// Save it. | |
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"%@;my user-agent", agent], @"UserAgent", nil]; | |
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary]; | |
} |
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
- (UIViewController*)getViewController | |
{ | |
for (UIView* next = [self superview]; next; next = next.superview) | |
{ | |
UIResponder* nextResponder = [next nextResponder]; | |
if ([nextResponder isKindOfClass:[UIViewController class]]) | |
{ | |
return (UIViewController*)nextResponder; | |
} |
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
#replace {domain} such as test.com | |
#replace {port} such as 8392 | |
#replace {password} such as fjadoisv122 | |
[Proxy] | |
🇯🇵5⃣️ = custom,jp.e.{domain},{port},rc4-md5,{password},http://nat.pw/ss.module | |
🇺🇸2⃣️ = custom,us.b.{domain},{port},rc4-md5,{password},http://nat.pw/ss.module |
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
xcrun simctl spawn booted launchctl debug system/com.apple.SpringBoard --environment DYLD_INSERT_LIBRARIES=/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib | |
xcrun simctl spawn booted launchctl stop com.apple.SpringBoard |
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
Build Settings > Preprocessor Macros | |
#if AD_HOC | |
#endif | |
#if DEBUG | |
#endif | |
#if APP_STORE | |
#endif |
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
# replace @host@ with my host | |
# replace @port@ with my port | |
# replace @pw@ with my password | |
[General] | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
dns-server = 8.8.8.8,223.5.5.5 |