Skip to content

Instantly share code, notes, and snippets.

@leeroybrun
Created January 24, 2014 12:48
Show Gist options
  • Save leeroybrun/8596604 to your computer and use it in GitHub Desktop.
Save leeroybrun/8596604 to your computer and use it in GitHub Desktop.
iOS tips and tricks
// Disable HTTPS warnings/errors
@implementation NSURLRequest(NSURLRequestWithIgnoredSSL)
+(BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
{
return YES;
}
@end
// Disable status bar
-(BOOL)prefersStatusBarHidden
{
return YES;
}
// Disable bounce on UIWebView
[[self.webView scrollView] setBounces:NO];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment