ios

ios

How to create a basic tableview in iOS swift in XCode

Learn to create a basic tableview in iOS swift in XCode. We will use storyboard to create the tableview with a list of items. Learn how to create the UI in XCode.

Read
ios

How to create different types of alerts and actionsheets in iOS swift

Learn how to create different types of alerts in iOS using swift like alerts and actionsheets with different customizable options.

Read
ios

How to use pod try to test an iOS library

Using a third-party library may break an existing project if it is not properly tested. Again, for UI components, it is really hard to choose the perfect one. There are a lot of libraries available for any types of UI like a button or a dialogue.

Read
ios

How to add NSPhotoLibraryUsageDescription key in XCode for an iOS project

NSPhotoLibraryUsageDescription key was introduced in iOS 10. This key should be included in all iOS project if the app is accessing the user's photo library. In this post, I will show you how to add this key to an XCode project.

Read
ios

Create a button programmatically in iOS using Swift 4

iOS Swift program to create a button programmatically. We will learn how to create one iOS UI element programmatically using swift. This example will show how to create a UIButton programmatically.

Read
ios

(iOS) Adding Swipe gesture to a view in Swift 4

In this tutorial, we will learn how to add swipe gesture in iOS applications using swift 4. The swipe gesture can be added to any view. For example, you have one custom notification over your application and you want to remove it if the user swipe from left to right. In that case, we need to add one gesture recognizer on that view. We will add one custom ’view’ and show you how to add all top, bottom, left and right swipe gesture recognizer for that view. Let’s have a look :.

Read
ios

How to dismiss a keyboard on tap outside view in iOS swift

In this tutorial, we will learn how to dismiss a keyboard if the user taps on outside on any view. In iOS, the keyboard doesn't dismiss automatically if the user taps anywhere outside of the keyboard view. So, we need to handle it manually. To achieve this, we can simply add one UITapGestureRecognizer to the parent view and dismiss the keyboard if any tap detected. The code looks like as below :.

Read
ios

How to update application badge count locally in iOS swift

In this tutorial, we will learn how to update the badge count of an iOS application using Swift. Badge count is the count number that is displayed with your application icon on home page.

Read
ios

How to create a Rounded corner UIView in iOS with Swift 4

Rounded corner UIVIew is useful in many cases like to create a custom button or to create a custom notification etc. In this tutorial, we will learn how to create a rounded corner UIView in XCode. This code is compatible with both Swift-3 and Swift-4 :.

Read