- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 201 Articles for IOS

Updated on 23-Oct-2019 09:05:25
Knowing how to send attachments in the email is very important since most of the application has sharing features. Hence having hands-on experience is important.In this post, we will be seeing how to send an attachment in the mail using Swift.So, let’s get started.For this, we will be using MFMailComposeViewController, which is a standard view controller, whose interface lets the user manage, edit, and send email messages.You can read more about it here https://developer.apple.com/documentation/messageui/mfmailcomposeviewcontrollerWe will also be using MFMailComposeViewControllerDelegate to handle results from MFMailComposeResult.You can read about it here https://developer.apple.com/documentation/messageui/mfmailcomposeviewcontrollerdelegateWe will be creating one sample application to understand, Step 1 ... Read More 
Updated on 23-Oct-2019 08:40:00
In this post, we will be seeing how you can delay a method call using Swift. Here we will be seeing how you can achieve the same in two ways, So let’s get started, We will be seeing both the example in Playground, Step 1 − Open Xcode → New Playground.In the first approach, we will be using asyncAfter(deadline: execute:) instance method, which Schedules a work item for execution at the specified time and returns immediately.You can read more about it here https://developer.apple.com/documentation/dispatch/dispatchqueue/2300020-asyncafterStep 2 − Copy the below code in Playground and run, func functionOne() { let delayTime = ... Read More 
Updated on 23-Oct-2019 08:36:31
Images are everywhere almost in all application, you might have come across many applications like gaming applications where you see images getting rotated.So, In this post, we will be seeing how to rotate the image in an image view by an angle in an iOS application.So, Let’s get started, Step 1 − Open Xcode→SingleViewApplication→name it RotateImage.Step 2 − Open Main.storyboard, add UIImageView and add 2 buttons as shown below name them ROTATE BY 90 DEGREES AND ROTATE BY 45 DEGREES. Add some sample images to UIImage View.Step 3 − Create @IBAction for both buttons and name them as rotate45button and ... Read More 
Updated on 12-May-2022 12:44:41
You want to say something but someone else says it in the best way. Ever faced this kind of situation? When a post in Facebook needs just a touch of spice by adding few characters, but that’s what you don’t have. Well the wait is over GIPHY is on your rescue.Whenever you have a conversation online, GIPHY is there to help you. The GIF catalog is infinitely loaded with pop culture, original animations and real-time information that you can share on your phone, tablet, laptop etc. Every social site that you use twitter, Facebook, Gmail, tinder everyone has put GIFs.GIPHY ... Read More 
Updated on 11-Oct-2019 12:48:37
Grand Central Dispatch (GCD) - a technology for Apple’s Mac OS X and iOS operating systems-is a combination of extensions to the C language, an API, and a run-time library that allows application developers to identify sections of code to run in parallel. Like OpenMP, GCD manages most of the details of threading. GCD identifies extensions to the C and C++ languages known as blocks. A block is simply a self-contained unit of work. It is specified by a caret ˆ inserted in front of a pair of braces { }. A simple example of a block is shown below ... Read More 
Updated on 11-Sep-2019 08:58:56
In this post we will learn how to take screen shot programmatically in iOS.We will add on textField where we will change the value, take the screen shot by press of a button and then show the screen shot in an imageView which we will place just below the button itself.Remember that you can add this functionality on long press or any other gesture, and even save the image if you want. But right now we will just focus on capturing the screen shot and showing it on an image view.So let’s get startedStep 1 − Open Xcode → New ... Read More 
Updated on 11-Sep-2019 08:57:55
In this post we will learn how to repeat a task after a regular interval.In this example we will update a label after a particular interval of time repeatedly.In iOS we user Timer to achieve this task. Lets get startedStep 1 − Open Xcode → New Project → Single View Application → Let’s name it “Timer”Step 2 − Open Main.storyboard and add a label as shown below.Step 3 − Attach one @IBOutlet for the bottom label. Name it timerLabelStep 4 − We will show the seconds since when the app is launched on the label. So, declare two variables in ... Read More 
Updated on 11-Sep-2019 08:53:12
In this post we will learn how to load PDF in UIWebView.Loading PDF in WebView is simple. Just follow the following steps.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “PDFInWebView”Step 2 − Open Main.storyboard and add UIWebView as shown belowStep 3 − Create @IBOutlet for the UIWebView, name it webview.Step 4 − Add as sample PDF project. We will load this PDF in webivew. I am adding a PDF file named sample PDF.Step 5 − Add the following lines in viewDidLoad method of ViewControllerif let pdf = Bundle.main.url(forResource: "sample", withExtension: "pdf", subdirectory: ... Read More 
Updated on 11-Sep-2019 08:46:53
In this post we will learn how to open website in iOS browser.We will open Facebook in iOS browser.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “OpenBrowser”Step 2 − Open Main.storyboard and add a button as shown below. I have given the button title as “Open Facebook”Step 3 − Attach one @IBAction function in ViewController, name it openBrowserStep 4 − In openBrowserFunction write the code to open URL like shown below@IBAction func openBrowsere(_ sender: Any) { let url = URL(string: "https://www.facebook.com")! if UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url, options: [:], ... Read More 
Updated on 11-Sep-2019 08:43:48
In this post we will learn how to open app store from iOS application.In this example we will open app store and show Facebook app on store. You can open your app if you want just by changing the ID to your app id.Lets do it.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “OpenAppStore”Step 2 − Open Main.storyboard and add a button as shown below.Step 3 − Attach one @IBAction for the button for click event. Name the function as openAppstoreClicked.Step 4 − In openAppstoreClicked we will write the code to open ... Read More Advertisements