1980'S Requirements: Operating System
Total Page:16
File Type:pdf, Size:1020Kb
iPhone Application Development iPhone iPad iPod Touch Java C Objective C -- 1980's Requirements: Operating System -- MAC OS 10.6 or Above Programmin Language -- Objective C 2.0 IDE -- XCODE 4.x Testing -- Simulator/Device Data Base -- SQLite Designing Tool -- Interface Builder Peroformence tool -- Instruments Frame Works -- Cocoa Touch Frame Work iOS 5.1 Latest iPhone 4S: 64GB Hard Disk 1GB RAM 8 Mega Pixel CAM Dual Core processor India: 45,000 US: 35,000 ------------------------------- iOS Android Black Berry Windows 7 Symbian Bada palm ------------------------------- C -- 3 days XCODE,IB,Simulator --6 Days Objective C - 10 Days Foundation Frame Work - 10 Days UIKit Frame Work -- 25 Days Address Book AVFoundation Frame Work Quartz Core Frame work Core Graphics Media Frame Work Map Kit Frame Work External Accessiories iAD NetWork Frame Work Web Services -------------------------------------- MAC Mini 35000 iMAC -- 55,000 -------------------------------------- 2.5 20 Samples 4 Projects -------------------------------------- How to install Application on iPhone iTunes account --- free/Credit card Apple Account --- 4.5 GB Developer Account -------------------------------------- MAC Store c://program files Applications Launch Pad -------------------------------------- www.apple.com https://itunesconnect.apple.com -------------------------------------- MAC OS 10.0 --1996 MAC OS 10.4 (Tiger) MAC OS 10.5 (Leopard) MAC OS 10.6 (Snow Leopard) MAC OS 10.7.3 (Lion) 1.launch pad 2.Mission Control 3.MAC Store 4.Users Switch 5.Dash Board 6.Gestures 7.Safari Changes 8.Full Screeen Apps 9.Photo Booth 10.Finder Search 11.iPad Scroll Feature 12.iCloud -------- MAC Applications MAC OS 10.8 (mountain Lion) -------------------------------------- C Language int x=5; main() { pf("%d",x); { int x = 2; } { int x = 7; pf("%d",x); } pf("%d",x); } ---------------------------- if(x==2) { pf("Both are equal"); } else if(x>2) { } else { } ------ int x=-2; if(x) { pf("Hi"); } else { pf("hello"); } ------ int x=1; if(x) { pf("hi") pf("hello"); } else pf("World"); ------ if('a'); pf("Hi"); ---------- char ch='a'; pf("%c",ch); --------------------- Loops for loop for(initialization; Condition ; update Statement) { } eg: for(int i=0;i<=2;i++) { pf("hello"); } ---- int i=2 for(;i==2;i++) { pf("hello"); } ---------- int i=2; for(;i;i++) { pf("Hello"); } integer range = -32768 to 32767 ---------- for(int i=0;printf("%d",printf("Hello"));i++) pf("hello"); ----- for(int i=1;i++;i++) { pf("hi") } -------- main() { int i = 1; int y = i++; y = i; } --------------- main() { int i =2; i = i++ + ++i; } --------------- for( ; ; ) pf("Hi"); -------------- for(3;3;3) pf("hello"); ------------ int i=2; int x; for(i;scanf("%d",x);i++) { pf("Hi"); } ------------ for(int i=0;i<100;i++); pf("hi"); pf("hello"); ----------------- for(int i=0;i<100;i++) { if(i==50) break; for(int j=0;j<2;j++) pf("Hi"); pf("/n"); } hi hi hi hi ----------------- While int i=1; while(i<2) { i++; } ----------------- do { }while(i==2); ----------------- enum { RED =0, GREEN=1, BLUE =2 } int i=0; Switch(i) { case RED; pf("Sunday"); break; case 1: pf("Monday"); break; case 2: pf("tuesday"); break; case 3: pf("Sunday"); break; case 4: pf("Sunday"); break; } if(i==0) pf("Sunday"); else if(i==1) pf("Monday"); -------------------- goto exit break continue -- main() { return 0; goto XYZ; - - - -- XYZ : exit(0); } void adition() { } ------------- for(int i=0i<10;i++) { if(i==5 || i==8) continue; pf("hi %d",i); } --------------- && || ! int i=2; if(i !=2 && i>2) { } int x=2; if(!x) { } && ---> T T = T || ---> F F = F -------------------- Functions SQl - Procedures Methods Sub routines MACROS #define MAX 100 #define SUM x+x Functions 1.Function Declaration 2.Defination 3.Function Calling ------------------- addition(int,int); main() { ---- ---- int sum = addition(2,3); ---- } int addition(int x,int y) { return x+y; } ------------ main() { main(); pf("hi"); } executes upto Stact Full -------------- Call By Value and Call By reference main() { int a = 2; int b = 5; swap(&a,&b); printf("a = %d and b = %d",a,b); } swap(int *p,int *q) { int temp; temp = *p; *p = *q; *q = temp; } --------------- MACROS #define MAX 100; #define addition x + x main() { y = MAX; for(int i=0;i<100;i++) addition(); } addition() { } ----------------------------- Pointers int x = 2; int *p; p = &x; printf("%u %d %u %d %u" ,p,x,&x,*p,&p) pointers Dynamic Memory Allocation realloc caloc malloc free int a[5]; collection of objects of same type. array index starts from 0 --------------------- Structures struct student { int rollNo; 2 char name[100]; -100 int marks; 2 } a; main() { a.rollNo =100; a.marks = 120; a.name = 'abc'; a = {100,'abc',120}; } Union ----------------------- Files #include <File.h> main() { FILE *fp = fopen("abc.txt","w"); fprintf(fp,"hello"); fscanf(fp,"%s",str); fclose(fp); } ----------------------- C Test your C Skills ----------------------- iPhone Application Development: List of Smart phones: iPhone - iOS 5.1 Galaxy Tab - Android Black Berry - Black berry Windows/Nokia Mobile - Windows 7 Simbian - Simbian palm pre mobile - palm Samsung - Bada -------------------------------------------------------- ------------ Requirements for iOS App Development: 1.Operating System -- MAC OS 10.6 and Above 2.IDE -- XCODE 5.0 3.Design tool -- Interface Builder(IB) 4.Testing Tool -- Simulator/Device 5.Programming Lang -- Objective C 2.0(C+ Small talk) 6.Data base -- SQLite 7.Performence tool -- instruments 8.Frame Works -- Cocoa Touch Frame Work MAC OS: Company --- Apple OS family --- UNIX Latest Release --- 10.7.3 Programeed in --- C,C++,Objective C MAC Versions: 10.0 --- Cheetah 10.1 --- puma 10.2 --- Jaugar 10.3 --- Panther 10.4 --- Tiger 10.5 --- Leopard 10.6 --- Snow Leopard 10.7 --- Lion Next Release 10.8 --- Mountain lion 19$ Features: 1.iMessages 2.Notification Center 3.Maps 4. iOS 6 1.Maps kilpagh Cocoa Frame Work -- 1996 --- MAC OS X -- App kit Frame Work Cocoa Touch Frame Work -- 2007 -- iOS -- UIKit Frame Work ------------------------------------------------ Objective C --10 UIKit -- 25 -- 40 Classes Foundation -- 10 -- 35 Classes ------------------------- iPhone : and Models are iPhone 2G,3G,3GS,4G,4S.And its SDK released in Sept -2008. The latest iPhone 4S having Dual Core processor,8Mega pixel Cam,1GB RAM,64 GB Hard Disk,siri,iCloud. ------------------------- Latest iOS 5.x features: 1.Notifications 2.News Stand 3.Reminder App 4.Safari Reader button 5.Siri 6.iCloud 7.iMessages 8.Camera Button 9.Twitter integration 10.PC Free ------------------------- MAC OS 10.7(Lion) Features: 1.launch pad 2.Mission Control 3.Dash board 4.Finder Search 5.Accounts Switching 6.MAC Store 7.iCloud 8.Full Screen Apps 9.Safari Changes 10.Photo Booth 11.Multiple gestures 12.Air Drop 13.Resume Windows -------------------------------- MAC OS 10.6(Snow leopard) Features 1.32 to bit to 64 bit Transition 2.Grand Central Dispatch(GCD) 3.Open CL 4.Quick Time X Player -------------------------------- iPhone Application Development Introduction: iOS Apple Account --- free Running the into iPhone/iPad and upload to store --- Developer Account -- 99$ or 299$ Free Account --> See the Documentation,Down load SDK Standard Edition (99$) -->1 Year,Run App in Devices,Upload to Store,100 Devices we can Test the App,Any no of Apps we can send to store Enterprise Edition (299$) -->1 Year,Run App in Devices,Upload to own Store,500 Devices we can Test the App,Any no of Apps we can send to store -------------------------------- Apple Developer Site: www.developer.apple.com Apple iTunes Store Site: www.itunesconnect.apple.com -------------------------------- iOS Application Development process: 1.Creating Your XCODE Project 2.Desing UI(IB) 3.Writing Code(Objective C) 4.Buid And Run your Application 5.Measuring Application Performance(Instruments) 2010 -- April 2012 -- July .exe .app 1.Creating Your XCODE Project: Q.How to open XCODE project? Ans. Goto Spot Light --->Type XCODE ---> Enter -- >goto File -->New Project ---> Select iOS Applications -->Select template -->Give Location And Project name -->Enter. ------ .h ----> Header File .m ----> Implementation File .xib ---> Design File int x; void addition(int , int); x =2; void addition() { } main() { } proprty list ino.plist icon App version identifier Dictionary: word -- meaning pch --->Pre Compiled header iPad icon size -- 72*72 iPhone icon size - 57*57 App store icon Size -- 512*512 iPhone Screen Size -- 320*480 iPad Screen Size --- 768*1024 iPad --Split Screen Apps,Pop overs,very Fast cop are to iPhone,No calls,No Messages. ------------------------------------- .h ----> Controller File(Declarations) .m ----> Implementation File (Definations) .xib --->Design File ------------------------ Interface Builder: 1980's NEXT STEP OPEN STEP MAC OS X iOS IB has two formats 1. .xib (Compile Time) 2. .nib (Run Time) All xib Files are prepared with XML. IB Have 4 Windows 1.File's Owner 2.Library 3.Inspector 4.View File's Owner: It is the first icon any XIB File.It has the copy of nib file.Using File's Owner we can connect the Elements in Ib to Outlets and Actions in Model. Inspector :Inspector is used for Setting the Attributes of UIElements.And It has 6 tabs. 1.File Identity 2.Documentation 3.Class Identity 4.Attribute Inspector 5.Size Inspector 6.Connections Screen Shot 2012-06-08 at 10.22.56 AM.png ¬ View: View is a Presentation layer to the User and for iPhone the View size is 320*480 Pixels and for iPad 1024*768 Pixels. By Default the View is already connected to File's Owner.And we can create any number of Views.All