HI THIS TOUTORIAL WILL HELP FULL FOR STARTUP IN IOS CREATED BY NAVEENRAJU
IOS BASICS EXPLINATIONS BY NAVEENRAJU
IPHONE SDK
- Introduction to iPhone Architecture
- Introduction to Development IDE - XCODE, Interface Builder
- Creating and building simple applications
- Handling Basic Interaction
- Creating basic view controllers
- Monitoring events and actions
- Creating advanced view controllers
- Memory Management
- Storyboarding Integration
- Programmatic Interface creation
- Integrating with core services – Email, Contacts, Camera, Map kit etc
- Data: actions, preferences, files, and addresses
- Camera, WebKit, Mapkit and core location
- Creating of database and using it in iPhone app
- Introduction to url loading system
- Debugging, testing the application
Creating and building simple applicatios creating and building simple applications:VIDEO: Demo1(Incrementing and decrimenting integer val when we click buttons)code for Demo1
ViewController.h
//
// ViewController.h
// FirstDemo
//
// Created by apple on 19/01/13.
// Copyright (c) 2013 apple. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@property (strong, nonatomic) IBOutlet UILabel *myLable;
- (IBAction)add:(id)sender;
- (IBAction)sub:(id)sender;
@end
ViewController.m
//
// ViewController.m
// FirstDemo
//
// Created by apple on 19/01/13.
// Copyright (c) 2013 apple. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
int count;
int count=0;
- (IBAction)add:(id)sender {
if(count<100)
{
count++;
self.myLable.text=[NSString stringWithFormat:@"sum is %i",count];
}
else{
self.myLable.text=@"sum is 100";
}
}
- (IBAction)sub:(id)sender {
if(count>0)
{
count--;
self.myLable.text=[NSString stringWithFormat:@"sum is %i",count];
}
else{
self.myLable.text=@"sum is 0";
}
}
@end
VIDEO: Demo2(Playing Audio File in IPHONE Device)code for Demo2
ViewController.h
//
// ViewController.h
// MusicFileDemo
//
// Created by Naveen on 29/01/13.
// Copyright (c) 2013 apple. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AVFoundation/AVFoundation.h"
@interface ViewController : UIViewController
<AVAudioPlayerDelegate>
{
AVAudioPlayer *audioPlayer;
}
- (IBAction)myPlay:(id)sender;
- (IBAction)myStop:(id)sender;
@end
ViewController.m
//
// ViewController.m
// MusicFileDemo
//
// Created by naveen on 29/01/13.
// Copyright (c) 2013 apple. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSError *error;
NSURL *url=[NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:@"naveen" ofType:@"mp3"]];
audioPlayer=[[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)myPlay:(id)sender {
[audioPlayer play];
}
- (IBAction)myStop:(id)sender {
[audioPlayer stop];
}
@end
ViewController.xib
|
No comments:
Post a Comment