data send from third viewcontroller to second viwecontroller thirdviewcontroller.h file @protocol threetotwo <NSObject> -(void)senddtthretotwo:(NSString *)string1;
@end @property (nonatomic,strong) id<threetotwo>str1;thirdviewcontroller.m file [str1 senddtthretotwo:txt3.text];
secindviewcontroller.h file
<threetotwo>
secindviewcontroller.m file
-(void)senddtthretotwo:(NSString *)string1 {
lbl2.text=string1;
=}
ViewController method use in newViewController newViewController.h -(void)print;
ViewController.m -(void)print; {
NSLog(@”kaushik info soft”); }
newViewController.m ViewController *vwct=[[ViewController alloc]init]; [vwct print];
UILocalNotification IBOutlet UIDatePicker *datpkr; - (IBAction)btnadnotific:(id)sender {
NSDate *dtobj=[datpkr date]; NSLog(@”%@”,dtobj);
UILocalNotification *local=[[UILocalNotification alloc]init];
// local.fireDate=[NSDate dateWithTimeIntervalSinceNow:30];
local.fireDate=dtobj; //currant system date and set notification local.alertBody=@”kaushik info soft pvt ltd creat”; [[UIApplication sharedApplication]scheduleLocalNotification:local];
}
A V AudioPlayer #import <AVFoundation/AVFoundation.h>
AVAudioPlayer *audopl; IBOutlet UISlider *sldref;
NSString *strflpath=[[NSBundle mainBundle]pathForResource:@”Mausam_Flute” ofType:@”mp3″];
NSURL *url=[NSURL fileURLWithPath:strflpath]; NSError *error; audopl=[[AVAudioPlayer alloc]initWithContentsOfURL:url error:&error]; audopl.delegate=self;
audopl.volume=0.5;
[audopl play]; [audopl pause]; [audopl stop];
audopl.numberOfLoops=4;
– (IBAction)sldrval:(id)sender {
audopl.volume=sldref.value; }