Sadiqaadil has Published 15 Answers

How to customise iOS button to set text and color?

Sadiqaadil

Sadiqaadil

Updated on 03-Jul-2020 12:32:40

In this post we will be seeing how to customise iOS button.So let’s get started.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “CustomiseButton”Step 2− Open Main.storyboard and add a button as shown below. We will customize this buttonThere are two ways to ... Read More

How to programmatically take a screenshot on iOS?

Sadiqaadil

Sadiqaadil

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 ... Read More

How to repeat a task repeatedly after a regular interval in Swift(iOS)?

Sadiqaadil

Sadiqaadil

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 ... Read More

How to make the phone call in iOS 10 using Swift?

Sadiqaadil

Sadiqaadil

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 − ... Read More

How to open a website in iOS's web browser from my application?

Sadiqaadil

Sadiqaadil

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 ... Read More

Launching the App Store from an iOS application

Sadiqaadil

Sadiqaadil

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 ... Read More

How to make phone call in iOS 10 using Swift?

Sadiqaadil

Sadiqaadil

Updated on 11-Sep-2019 08:40:24

In this post we will be seeing how to make phone in iOS programmatically.So let’s get started.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “MakeCall”Step 2 − Open Main.storyboard and add one text field and one button as shown belowStep 3 − ... Read More

How to get the build/version number of an iOS App?

Sadiqaadil

Sadiqaadil

Updated on 11-Sep-2019 08:35:25

In this post we will learn how to fetch and show the iOS build and version numberStep 1 − Open Xcode → New Project → Single View Application → Let’s name it “ShowBuildAndVersion”Step 2 − Open Main.storyboard and add two labels as shown below.Step 3 − Attach @IBOutLets for the ... Read More

How to get the Touch position on iOS device?

Sadiqaadil

Sadiqaadil

Updated on 11-Sep-2019 08:30:35

In this post we will be seeing how to get the touch position on device using Swift.So let’s get started.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “TouchMe”Step 2 − Open Main.storyboard and add one label as shown below. On this label ... Read More

How can I get battery level and state (plugged in, discharging, charging, etc) in iOS?

Sadiqaadil

Sadiqaadil

Updated on 11-Sep-2019 08:25:16

In this post we will be seeing how to get the battery state in iOS.So let’s get started.Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “BatteryState”Step 2 − Open Main.storyboard and add two label as shown below. On this label we will ... Read More

Advertisements