November 2017 - Swift 4 Tutorials W3Schools

Post Top Ad

27 Nov 2017

How to Record and Play Audio in iPhone using swift 4

11/27/2017 10:19:00 am 151
In this article we are going to learn about recording sound using Swift 4. Not only recording but also playing the recorded file. Here we are using AVAudioRecorder for recording audio and AVAudioPlayer for playing the sound. It's an easy to record...
Read More

20 Nov 2017

How to convert Range to NSRange and Viceversa

11/20/2017 10:25:00 am 2
NSRange contains two properties. 1. location 2. length For example: Get the range of word "find" from the following string. let originalString = "Hello let's find range" "find" located at position 12, and is length of 4. So range should be...
Read More

18 Nov 2017

UIRotationGestureRecognizer - Rotate image with Two Fingers in swift

11/18/2017 09:37:00 am 1
In this tutorial we will learn how to rotate an imageView using UIRotationGestureRecognizer. A rotation gesture is a continuous gesture that occurs when the first two fingers that touch the screen rotate around each other The iOS UIRotationGestureRecognizer...
Read More

16 Nov 2017

UILongPressGestureRecognizer - Image zoom in and out example on Long Press Gesture in swift

11/16/2017 08:54:00 am 0
In this tutorial we will learn how to zoom in and out an imageView using UILongPressGestureRecognizer. The iOS UILongPressGestureRecognizer class has a built-in way to detect long press gesture on any view. Other Gestures in iOS: Single Tap &...
Read More

15 Nov 2017

Download Xcode dmg file for iOS development | Download all versions of Xcode dmg file

11/15/2017 10:18:00 am 0
Here we are providing all direct links for downloading Xcode. You can download any version from the following links based on your requirement. Xcode 9 Xcode 9.2 (Beta) Xcode 9.0 Xcode 9.0 (Beta 6) Xcode 9.0 (Beta) Xcode...
Read More

UIPanGestureRecognizer - Dragging View Example in Swift

11/15/2017 08:24:00 am 0
In this tutorial we will learn how to drag a view using UIPanGestureRecognizer. The iOS UIPanGestureRecognizer class has a built-in way to detect pan gesture on any view. Other Gestures in iOS: Single Tap & Double Tap Gesture - UITapGestureRecognizer Swipe...
Read More

14 Nov 2017

Set Up Multiple Colors and Fonts in a Single Label Swift

11/14/2017 10:30:00 am 0
In this article we learn setting up different colors in one label using NSAttributedString. Label has text property and attributedText property. Here we are going to use attributedText property for customization. Add the following code: override...
Read More

13 Nov 2017

Limit characters in TextField or TextView Swift

11/13/2017 08:33:00 am 0
In this article we will learn how to set maximum character length to a UITextField and UITextView. We go through each one separately. UITextField: First add UITextField to the view and conform to UITextFieldDelegate. Next add the following delegate...
Read More

12 Nov 2017

UIPinchGestureRecognizer - Pinch Gesture Example on ImageView in Swift 4

11/12/2017 10:01:00 am 0
The iOS UIPinchGestureRecognizer class has a built-in way to detect pinch gesture on any view. In this tutorial we will learn Pinch Gesture Recognizer on ImageView. Other Gestures in iOS: Single Tap & Double Tap Gesture - UITapGestureRecognizer Swipe...
Read More

11 Nov 2017

UITapGestureRecognizer - Single Tap & Double Tap Example in Swift 4

11/11/2017 12:41:00 am 0
The iOS UITapGestureRecognizer class has a built-in way to detect taps on any view. We can set the required taps based on our usage. Other Gestures in iOS: Swipe Gesture Recognizer - UISwipeGestureRecognizer Pinch Gesture Recognizer - UIPinchGestureRecognizer...
Read More

10 Nov 2017

Add Search Bar in Navigation Bar swift | Customize Search Bar

11/10/2017 03:35:00 am 5
In this article we will learn how to add search controller in navigation bar. Customizing search bar like placeholder text, title text, clear button. Here we are going to use Large Title Navigation bar. Adding Search Bar In Navigation Bar: Add the...
Read More

9 Nov 2017

Swipe Gesture Recognizer On ImageView swift 4

11/09/2017 04:55:00 am 0
Swipe Gesture Recognizer is the one of the important gesture for the iOS users. It's really easy to implement, here we will show implementation to swipe gesture with an example project. In this example project we are going to swipe image to left, right,...
Read More

8 Nov 2017

UILabel Left and Right margin Padding with Round Corners in Swift 4

11/08/2017 09:30:00 am 0
In this article we will learn how to add margins/padding to the label using custom UIEdgeInsets. In the above image we can clearly see "without padding" and "with padding". "Without padding" is not looking great, so usually developers prefer labels...
Read More
Page 1 of 1412345...14Next »Last

Post Top Ad