SlideShare uma empresa Scribd logo
1 de 21
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
Gesture Control
 Single Tap (By Code)
 Double Tap (By Code)
 Rotation Gesture (By IBAction)
 Long Press Gesture (By IBAction)
 Swipe Gesture(By IBAction)
Single Tap and Double Tap Code
Add methods in .m file
-(IBAction)singleTap:(UITapGestureRecognizer *)sender
{
self.view.backgroundColor=[UIColor redColor];
}
-(IBAction)DoubleTap:(UITapGestureRecognizer *)sender
{
self.view.backgroundColor=[UIColor greenColor];
}
Add Gesture Controls
• Drag this controls on Story board/xib.
Create IBAction
 Ctrl + click + drag from All gestures one by one
and create IBAction in .h file.
Connect / Make Sure
 Connect every gesture’s delegate to View
Controller. Also connect new referencing outlet
with view.
 E.g. View
ViewController
- (IBAction)handleLongPress:(UILongPressGestureRecognizer *)sender{
self.view.backgroundColor=[UIColor yellowColor];
}
- (IBAction)rotationGesture:(UIRotationGestureRecognizer *)sender{
self.view.backgroundColor=[UIColor blueColor];
}
- (IBAction)swipeGesture:(UISwipeGestureRecognizer *)sender {
//if(sender.direction == UISwipeGestureRecognizerDirectionRight)
self.view.backgroundColor=[UIColor cyanColor];
//else
self.view.backgroundColor=[UIColor cyanColor];
}
Output 1 – Run, Single Tap
Output 2 – Double Tap, Swipe
Left
Output 3 - Long Press, Rotation
 Rotation Gesture can be
demo only on real
hardware after deployment
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

Mais conteúdo relacionado

Destaque

Destaque (11)

Presentation6 ui image_view
Presentation6 ui image_viewPresentation6 ui image_view
Presentation6 ui image_view
 
Presentation5 picker view
Presentation5 picker viewPresentation5 picker view
Presentation5 picker view
 
Presentation15 parse xml
Presentation15 parse xmlPresentation15 parse xml
Presentation15 parse xml
 
java code and document security
java code and document securityjava code and document security
java code and document security
 
Java RMI
Java RMIJava RMI
Java RMI
 
Java Networking
Java NetworkingJava Networking
Java Networking
 
java drag and drop and data transfer
java drag and drop and data transferjava drag and drop and data transfer
java drag and drop and data transfer
 
Java Beans
Java BeansJava Beans
Java Beans
 
java Jdbc
java Jdbc java Jdbc
java Jdbc
 
JDBC
JDBCJDBC
JDBC
 
java swing programming
java swing programming java swing programming
java swing programming
 

Semelhante a Presentation2 gesture control

iPhone/iPad Development with Titanium
iPhone/iPad Development with TitaniumiPhone/iPad Development with Titanium
iPhone/iPad Development with Titanium
Axway Appcelerator
 
Component interface
Component interfaceComponent interface
Component interface
JAYAARC
 
2010 08-26-smart-architecture
2010 08-26-smart-architecture2010 08-26-smart-architecture
2010 08-26-smart-architecture
CHIP
 
His human identification schemes on web
His human identification schemes on webHis human identification schemes on web
His human identification schemes on web
IAEME Publication
 

Semelhante a Presentation2 gesture control (20)

04 objective-c session 4
04  objective-c session 404  objective-c session 4
04 objective-c session 4
 
iPhone/iPad Development with Titanium
iPhone/iPad Development with TitaniumiPhone/iPad Development with Titanium
iPhone/iPad Development with Titanium
 
Appcelerator iPhone/iPad Dev Con 2010 San Diego, CA
Appcelerator iPhone/iPad Dev Con 2010 San Diego, CAAppcelerator iPhone/iPad Dev Con 2010 San Diego, CA
Appcelerator iPhone/iPad Dev Con 2010 San Diego, CA
 
Android Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_androidAndroid Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_android
 
Wearables + Azure development
Wearables + Azure developmentWearables + Azure development
Wearables + Azure development
 
01 09 - graphical user interface - basic widgets
01  09 - graphical user interface - basic widgets01  09 - graphical user interface - basic widgets
01 09 - graphical user interface - basic widgets
 
Component interface
Component interfaceComponent interface
Component interface
 
2010 08-26-smart-architecture
2010 08-26-smart-architecture2010 08-26-smart-architecture
2010 08-26-smart-architecture
 
Hello world ios v1
Hello world ios v1Hello world ios v1
Hello world ios v1
 
Titanium Appcelerator - Beginners
Titanium Appcelerator - BeginnersTitanium Appcelerator - Beginners
Titanium Appcelerator - Beginners
 
Notes Unit4.pptx
Notes Unit4.pptxNotes Unit4.pptx
Notes Unit4.pptx
 
Mobile Application Development with JUCE and Native API’s
Mobile Application Development with JUCE and Native API’sMobile Application Development with JUCE and Native API’s
Mobile Application Development with JUCE and Native API’s
 
Making Android Easier to Develop
Making Android Easier to DevelopMaking Android Easier to Develop
Making Android Easier to Develop
 
Android Development Tips & Tricks
Android Development Tips & TricksAndroid Development Tips & Tricks
Android Development Tips & Tricks
 
Presentation
PresentationPresentation
Presentation
 
His human identification schemes on web
His human identification schemes on webHis human identification schemes on web
His human identification schemes on web
 
Gradle for Android Developers
Gradle for Android DevelopersGradle for Android Developers
Gradle for Android Developers
 
Taha Mohammed Gamal
Taha Mohammed GamalTaha Mohammed Gamal
Taha Mohammed Gamal
 
Saravanaselvan_Satyam_Exp_Letter
Saravanaselvan_Satyam_Exp_LetterSaravanaselvan_Satyam_Exp_Letter
Saravanaselvan_Satyam_Exp_Letter
 
Using Edge Animate to Create a Reusable Component Set
Using Edge Animate to Create a Reusable Component SetUsing Edge Animate to Create a Reusable Component Set
Using Edge Animate to Create a Reusable Component Set
 

Último

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Último (20)

Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 

Presentation2 gesture control

  • 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]; }
  • 8.
  • 9. Gesture Control  Single Tap (By Code)  Double Tap (By Code)  Rotation Gesture (By IBAction)  Long Press Gesture (By IBAction)  Swipe Gesture(By IBAction)
  • 10. Single Tap and Double Tap Code
  • 11. Add methods in .m file -(IBAction)singleTap:(UITapGestureRecognizer *)sender { self.view.backgroundColor=[UIColor redColor]; } -(IBAction)DoubleTap:(UITapGestureRecognizer *)sender { self.view.backgroundColor=[UIColor greenColor]; }
  • 12. Add Gesture Controls • Drag this controls on Story board/xib.
  • 13. Create IBAction  Ctrl + click + drag from All gestures one by one and create IBAction in .h file.
  • 14.
  • 15. Connect / Make Sure  Connect every gesture’s delegate to View Controller. Also connect new referencing outlet with view.  E.g. View ViewController
  • 16. - (IBAction)handleLongPress:(UILongPressGestureRecognizer *)sender{ self.view.backgroundColor=[UIColor yellowColor]; } - (IBAction)rotationGesture:(UIRotationGestureRecognizer *)sender{ self.view.backgroundColor=[UIColor blueColor]; } - (IBAction)swipeGesture:(UISwipeGestureRecognizer *)sender { //if(sender.direction == UISwipeGestureRecognizerDirectionRight) self.view.backgroundColor=[UIColor cyanColor]; //else self.view.backgroundColor=[UIColor cyanColor]; }
  • 17. Output 1 – Run, Single Tap
  • 18. Output 2 – Double Tap, Swipe Left
  • 19. Output 3 - Long Press, Rotation  Rotation Gesture can be demo only on real hardware after deployment
  • 20. Deployment of App  Add app bundle id in to website.  Create an archive (.ipa)  Install archive on device
  • 21. Thank you  For further communication or queries:  Contact me:  desaiankitb@gmail.com  www.fb.com/desaiankitb

Notas do Editor

  1. After loading all images of respective sizes migrate them to some asset catalog
  2. After loading all images of respective sizes migrate them to some asset catalog
  3. Add in .m file