Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS Code standard iOS
Trang 1dani.arnaout@live.com
Trang 4UIImage "normal.png"forState:UIControlStateNormal
UIImage "pressed.png"forState:UIControlStateHighlighted];
Trang 5NSString NSString stringWithFormat:@"%f",mySlider.value
if (mySwitch.on == YES) NSLog(@”Switch is ON”);
Trang 6[myProgressView setProgress:1.0 animated:YES
Trang 13NSString *currentURL= myWebView.request.URL.absoluteString;
Trang 14
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:
@"http://www.google.se"]];
Trang 20To play an audio file:
Insert audio framework first
Add this to your h:
#import <AVFoundation/AVFoundation.h>
Add this to your m:
withExtension:@"wav"];
Trang 24[self performSelector:@selector(myMethodName)
withObject:nil afterDelay:2.0f];
// here you can implement whatever you want to be animated:
Trang 25[[NSUserDefaults standardUserDefaults setObject
Trang 29SUBSTRING:
1 link between a view & another using MODAL way
2 Go to the right side: identifier: hello
3 In your m add the following line to the method that will
be responsible for navigating to the second view
[self performSegueWithIdentifier:@"hello" sender:self];