If you ever get this error saying, "The certificate for this server is invalid. You might be connecting to a server that is pretending to be bla.blablabla.com which could put your confidential information at risk" do not panic.
Go to Settings and update your date and time. :-)(Should be one of the solutions)
USeful iOS Tips and Info
Monday, March 26, 2012
Tuesday, March 13, 2012
Launch SMS, Phone, Email, Google Maps & Browser apps from xcode:
Launching the above mentioned apps from the code has never been easier...
1) Open default Phone app in iPhone:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://9786663663"]];
*) To launch the app after the user hangs up.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://9786663663"]];
*) To check if the iOS device supports making a call.
UIDevice *device = [UIDevice currentDevice];
if ([[device model] isEqualToString:@"iPhone"] ) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"telprompt://%@", self.phoneTest]]];
} else {
UIAlertView *Notpermitted=[[UIAlertView alloc] initWithTitle:@"Alert" message:@"Your device doesn't support this feature." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[Notpermitted show];
[Notpermitted release];
}
2) Open default SMS app in iPhone:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://9786663663"]];
3) Open default Email app in iPhone:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://apple@apple.com"]];
4) Open default Maps app in iPhone:
NSString* addressText = @"1 Infinite Loop, Cupertino, CA 95014";
// URL encode the spaces
addressText = [addressText stringByAddingPercentEscapesUsingEncoding: NSASCIIStringEncoding];
NSString* urlText = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@", addressText];
// lets throw this text on the log so we can view the url in the event we have an issue
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlText]];
5) Open default Browser app in iPhone:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];
1) Open default Phone app in iPhone:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://9786663663"]];
*) To launch the app after the user hangs up.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://9786663663"]];
*) To check if the iOS device supports making a call.
UIDevice *device = [UIDevice currentDevice];
if ([[device model] isEqualToString:@"iPhone"] ) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"telprompt://%@", self.phoneTest]]];
} else {
UIAlertView *Notpermitted=[[UIAlertView alloc] initWithTitle:@"Alert" message:@"Your device doesn't support this feature." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[Notpermitted show];
[Notpermitted release];
}
2) Open default SMS app in iPhone:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://9786663663"]];
3) Open default Email app in iPhone:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://apple@apple.com"]];
4) Open default Maps app in iPhone:
NSString* addressText = @"1 Infinite Loop, Cupertino, CA 95014";
// URL encode the spaces
addressText = [addressText stringByAddingPercentEscapesUsingEncoding: NSASCIIStringEncoding];
NSString* urlText = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@", addressText];
// lets throw this text on the log so we can view the url in the event we have an issue
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlText]];
5) Open default Browser app in iPhone:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];
Monday, August 15, 2011
Erase All Content and Settings:
This option is kinda tricky when you guys have a Jailbroken device(havent tested it on a normal device yet). When you select this option, your device undergoes a normal reboot but ends up with an abnormal result. What happens is that the phone gets hung up displaying a blank screen which is when you start panicking. The apple support centre would say that it will take hours for it to complete the process, but I've read threads and forums that it never gets recovered. Anyways coming to the point, when such thing happens put the device in the DFU mode.
In simple words,
1) Connect your device to the system, hold the HOME button and the SLEEP button together for about 5 - 7 secs till you get the white screen which flashes for a second.
2) Then release the Sleep button and keep holding the Home button until your iTunes recognizes your device. Tadaaa...
In simple words,
1) Connect your device to the system, hold the HOME button and the SLEEP button together for about 5 - 7 secs till you get the white screen which flashes for a second.
2) Then release the Sleep button and keep holding the Home button until your iTunes recognizes your device. Tadaaa...
Sunday, August 14, 2011
Introduction:
Hey Guys, The name is Shyam, an entry level iOS developer from San Jose. I am writing this blog to share my experience, knowledge about iOS and other useful stuff which I've encountered and will encounter in the future. Content might be repetitive from other blogs but the aim is to bring as much as information possible in to one place. Thanks for bearing with me. Welcome to my blog.
Subscribe to:
Comments (Atom)