Thursday, 31 January 2013



HI THIS TOUTORIAL WILL HELP FULL FOR STARTUP IN IOS CREATED BY NAVEENRAJU



IOS BASICS EXPLINATIONS BY NAVEENRAJU

OBJECTIVE C

  • Introduction to Objective-c programming
  • Primitive Data Types and Operators
  • Flow Control Statements
  • Arrays and Structures
  • Classes, Objects, and Messaging
  • Memory Management and Properties
  • Inheritance, Polymorphism
  • Protocols and Categories
  • Introduction to Foundation Framework Classes
  • File Handling
  • Property Lists, NSCopy, and Archiving
  • Selectors and Targets
  • Dynamic Typing and Dynamic Binding

  • Introduction to Objective-c programming




An object-oriented approach to application development makes programs more intuitive to design, faster to develop, more amenable to modification, and easier to understand. The Objective-C language is a programming language designed to enable sophisticated object-oriented programming. Objective-C is defined as a small but powerful set of extensions to the standard ANSI C language. Its additions to C are mostly based on Smalltalk, one of the first object-oriented programming languages. Objective-C is designed to give C full object-oriented programming capabilities and to do so in a simple and straightforward way.


Why Objective C:

       Objective-C was chosen as the development language for the Cocoa frameworks.
On the iPhone and iPad, Cocoa is called Cocoa Touch, rather than simply Cocoa, because the iOS contains touch events. If you have ever tapped, flicked, swiped, or pinched your device’s display, you know what touch events are. Touch events allow you to program responses to a user’s touching the screen with his or her fingers.                       Cocoa Touch also provides the primary class libraries needed for development. The two Cocoa Touch frameworks you will use in every application you write are the Foundation framework and the UIKit framework. A framework is collection of code devoted to a similar task. The Foundation framework is dedicated to standard programming topics, such as collections, strings, file I/O, and other basic tasks. The UIKit is dedicated to the iPhone and iPad device’s interface and contains classes such as the UIView. In this book, you spend most of your time learning the UIKit. 

Objective-C, Foundation Framework,
Cocoa Touch, and UIKit

Apple describes the iPhone and iPad device’s technology as layers. The base layer is the Core OS layer. On top of that is the Core Services layer. On top of the Core Services is the Media layer. The topmost layer is Cocoa Touch (Figure 1-3).You can simplify the iPhone operating system (iOS) even more; think of it as two layers—a C layer and a Cocoa layer (Figure 1-4). The C layer comprises the operating system’s layer. You use BSD UNIX–style C functions to manipulate this layer. This layer consists of things like low-level file I/O, network sockets, POSIX threads, and SQLite. 




                                                          (Figure 1-3)


                                     

                                                             (Figure 1-4)







IOS Foundation Framework:

              The Foundation framework contains Objective-C classes that wrap lower-level core functionality. For instance, rather than working with low-level C file I/O, you can work with the NSFileManager foundation class. The Foundation framework provides many useful classes that you really should learn if you want to program robust iOS applications. The Foundation framework makes programming using collections, dates and time, binary data, URLs, threads, sockets, and most other lower-level C functionality easier by wrapping the C functions with higher- level Objective-C classes.


The iOS Frameworks:








HISTORY OF IPHONE:


When the iPhone was originally introduced back in 2007, there was no native SDK.


 Apple claimed that one wasn’t needed and that applications for the device should be built as web applications using JavaScript, CSS, and HTML.


 This didn’t go down well with the developer community; they wanted direct access to the hardware and inte- gration with Apple’s own applications.


Only a few months after the iPhone’s release, the open source community had accom- plished something that many thought impossible.


 Despite Apple locking the device down, developers had gained access, reverse-engineered the SDK, and gone on to build a free open source tool chain that allowed them to build native applications for the device. 


At one point, it was estimated that more than one-third of the iPhones on the market had been “jail broken” by their users, allowing them to run these unsanctioned third-party applications.

 Apple publicly changed its mind and released a native SDK to a waiting developer community. 


Whether this release was in response to the open source community’s efforts, or per- haps because it was just the plan by a notoriously secretive Apple all along, we’ll prob- ably never know. 



Creating Sample IPhone App:


















HI THIS TOUTORIAL WILL HELP FULL FOR STARTUP IN IOS CREATED BY NAVEENRAJU




iOS Basics Explinations By NaveenRaju

Objective C



iPhone SDK





iOS Advanced

  • Core Data Integration
  • Advanced controllers – Navigation controller, iPad specific split controllers etc
  • Integrating with Core Services – Core Audio, Video
  • Push notification
  • iAD Integration
  • Advanced Even Handling - Multi touch, Gesture Recognition
  • Maps overview and core location
  • Protocols and Categories
  • Communication with the Services
  • Using the Accelerometer
  • Bluetooth Programming








Tuesday, 29 January 2013



HI THIS TOUTORIAL WILL HELP FULL FOR STARTUP IN IOS CREATED BY NAVEENRAJU


Playing an Audio file in IPhone AudioPlayer and
Play an Audio file in IPad or in Any Tablet



















                                           




                                          




                                           






Code For Above Video Demo:



ViewController.xib




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














Saturday, 19 January 2013



HI THIS TOUTORIAL WILL HELP FULL FOR STARTUP IN IOS PROGRAMING CREATED BY NAVEENRAJU



1)HOW TO DEVELOP  STORYBOARDS APP IN  XCODE 










2)Story Boards Using NavigationContoller and root view controller









3)Story Boards Using TableViewController









fi


HI THIS TOUTORIAL WILL HELP FULL FOR STARTUP IN IOS PrOGRAMING CREATED BY NAVEENRAJU



How to Develop First App in  Xcode 






Next Toutorial on Story Boards