SlideShare a Scribd company logo
iOS Programming
Objective C + iOS
Profile
Ankit Desai
 Ph.D. Scholar, IET, Ahmedabad University
 Education: M. Tech. CE, B.E. I. T.
 Experience: 7.5 Years (Academic and Research)
 Research Interest: IoT, Big Data Analytics,
Machine Learning, Data Mining.
iOS App Development
 App Logo / App Icon
 App Splash Screen
 App Orientation
App icon
Splash Screen
Increase screen time
[NSThread sleepForTimeInterval:5.0];
Add above line in viewController.m:
- (void)viewDidLoad
{
[NSThread sleepForTimeInterval:5.0];
[super viewDidLoad];
}
Only Portrait
Presentation3 actionsheet alertview
Action Sheet
 Drag a button on Interface Builder
Create IBAction
 Ctrl + Click + Drag
Create UIActionSheet Obj.
- (IBAction)openActionSheet:(id)sender {
UIActionSheet *asheet=[[UIActionSheet
alloc]initWithTitle:
@"MyActionSheet" delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"Save"otherButtonTitles:@"Ok",@
"myTitle", nil];
[asheet showInView:self.view];
}
Implement a delegate
method
- (void)actionSheet:(UIActionSheet *)actionSheet
clickedButtonAtIndex:(NSInteger)buttonIndex{
if(buttonIndex==0){
UIAlertView *alert0 = [[UIAlertView alloc]initWithTitle:@"Welcome"
message:@"you clicked 0" delegate:nil cancelButtonTitle:@"cancle"
otherButtonTitles:nil];
[alert0 show];
}else{
UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@"Welcome"
message:@"you clicked 1" delegate:nil cancelButtonTitle:@"cancle"
otherButtonTitles:nil];
[alert1 show];
}
}
To make it work
@interface ViewController :
UIViewController<UIAlertViewDelegate>
Add <UIAlertViewDelegate> after classname
Output after clicking button
click me… other than save
Deployment of App
 Add app bundle id in to website.
 Create an archive (.ipa)
 Install archive on device
Thank you
 For further communication or queries:
 Contact me:
 desaiankitb@gmail.com
 www.fb.com/desaiankitb

More Related Content

PPTX
Presentation4 date picker
PPTX
Presentation1 password
PPTX
Presentation2 gesture control
PPTX
Presentation11 sq lite
PPTX
Presentation14 audio play
PPTX
Presentation10 view navigation
PPTX
Presentation7 segment control
PPTX
Presentation15 parse xml
Presentation4 date picker
Presentation1 password
Presentation2 gesture control
Presentation11 sq lite
Presentation14 audio play
Presentation10 view navigation
Presentation7 segment control
Presentation15 parse xml

Viewers also liked (11)

PPTX
Presentation6 ui image_view
PPTX
Presentation5 picker view
PPTX
java code and document security
PPTX
Presentation8 silder switch_progress
PPTX
Java RMI
PPT
Java Networking
PPTX
java drag and drop and data transfer
PPTX
Java Beans
PPTX
java Jdbc
PPT
PPT
java swing programming
Presentation6 ui image_view
Presentation5 picker view
java code and document security
Presentation8 silder switch_progress
Java RMI
Java Networking
java drag and drop and data transfer
Java Beans
java Jdbc
java swing programming
Ad

Similar to Presentation3 actionsheet alertview (20)

PPTX
iOS Development (Part 2)
PDF
Leaving Interface Builder Behind
PDF
Особенности фоновой работы iOS-приложения на примере синхронизации Яндекс.Ди...
KEY
漫游iOS开发指南
PDF
iPhone dev intro
PDF
Beginning to iPhone development
PDF
iOS: A Broad Overview
PDF
The iOS technical interview: get your dream job as an iOS developer
PDF
App anatomy and life cycle
KEY
iOS4 multitasking development notes
PPTX
iOS app dev Training - Session1
PDF
Adapting iOS 8 in iOS 7 Apps
PPTX
iOS Beginners Lesson 2
PDF
Multitasking in iOS 7
PPTX
Automating the Gaps of Unit Testing Mobile Apps
PPTX
Hello world ios v1
PDF
Background Fetch - the most powerful API you've never heard of
PDF
Nikita Tuk: Handling background processes in iOS: problems & solutions
PPTX
Code camp 2011 Getting Started with IOS, Una Daly
PDF
Iphone app programming guide
iOS Development (Part 2)
Leaving Interface Builder Behind
Особенности фоновой работы iOS-приложения на примере синхронизации Яндекс.Ди...
漫游iOS开发指南
iPhone dev intro
Beginning to iPhone development
iOS: A Broad Overview
The iOS technical interview: get your dream job as an iOS developer
App anatomy and life cycle
iOS4 multitasking development notes
iOS app dev Training - Session1
Adapting iOS 8 in iOS 7 Apps
iOS Beginners Lesson 2
Multitasking in iOS 7
Automating the Gaps of Unit Testing Mobile Apps
Hello world ios v1
Background Fetch - the most powerful API you've never heard of
Nikita Tuk: Handling background processes in iOS: problems & solutions
Code camp 2011 Getting Started with IOS, Una Daly
Iphone app programming guide
Ad

Recently uploaded (20)

PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Designing Intelligence for the Shop Floor.pdf
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
L1 - Introduction to python Backend.pptx
PDF
Cost to Outsource Software Development in 2025
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
top salesforce developer skills in 2025.pdf
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
System and Network Administration Chapter 2
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
Transform Your Business with a Software ERP System
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
System and Network Administraation Chapter 3
How to Choose the Right IT Partner for Your Business in Malaysia
Upgrade and Innovation Strategies for SAP ERP Customers
Designing Intelligence for the Shop Floor.pdf
Why Generative AI is the Future of Content, Code & Creativity?
L1 - Introduction to python Backend.pptx
Cost to Outsource Software Development in 2025
Adobe Illustrator 28.6 Crack My Vision of Vector Design
top salesforce developer skills in 2025.pdf
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Design an Analysis of Algorithms II-SECS-1021-03
PTS Company Brochure 2025 (1).pdf.......
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
wealthsignaloriginal-com-DS-text-... (1).pdf
System and Network Administration Chapter 2
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Reimagine Home Health with the Power of Agentic AI​
Transform Your Business with a Software ERP System
Softaken Excel to vCard Converter Software.pdf
iTop VPN Free 5.6.0.5262 Crack latest version 2025
System and Network Administraation Chapter 3

Presentation3 actionsheet alertview

  • 2. Profile Ankit Desai  Ph.D. Scholar, IET, Ahmedabad University  Education: M. Tech. CE, B.E. I. T.  Experience: 7.5 Years (Academic and Research)  Research Interest: IoT, Big Data Analytics, Machine Learning, Data Mining.
  • 3. iOS App Development  App Logo / App Icon  App Splash Screen  App Orientation
  • 6. Increase screen time [NSThread sleepForTimeInterval:5.0]; Add above line in viewController.m: - (void)viewDidLoad { [NSThread sleepForTimeInterval:5.0]; [super viewDidLoad]; }
  • 9. Action Sheet  Drag a button on Interface Builder
  • 10. Create IBAction  Ctrl + Click + Drag
  • 11. Create UIActionSheet Obj. - (IBAction)openActionSheet:(id)sender { UIActionSheet *asheet=[[UIActionSheet alloc]initWithTitle: @"MyActionSheet" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Save"otherButtonTitles:@"Ok",@ "myTitle", nil]; [asheet showInView:self.view]; }
  • 12. Implement a delegate method - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{ if(buttonIndex==0){ UIAlertView *alert0 = [[UIAlertView alloc]initWithTitle:@"Welcome" message:@"you clicked 0" delegate:nil cancelButtonTitle:@"cancle" otherButtonTitles:nil]; [alert0 show]; }else{ UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@"Welcome" message:@"you clicked 1" delegate:nil cancelButtonTitle:@"cancle" otherButtonTitles:nil]; [alert1 show]; } }
  • 13. To make it work @interface ViewController : UIViewController<UIAlertViewDelegate> Add <UIAlertViewDelegate> after classname
  • 14. Output after clicking button click me… other than save
  • 15. Deployment of App  Add app bundle id in to website.  Create an archive (.ipa)  Install archive on device
  • 16. Thank you  For further communication or queries:  Contact me:  desaiankitb@gmail.com  www.fb.com/desaiankitb

Editor's Notes

  • #5: After loading all images of respective sizes migrate them to some asset catalog
  • #6: After loading all images of respective sizes migrate them to some asset catalog