Posts

Showing posts from September, 2018

How to create car Animation in iOS using swift 4

Image

carAnimationView

Image
Car AnimationView IOS – Animations Animation is a critical part of your iOS user interfaces. Animation draws the user’s attention toward things that change, and adds a ton of fun and polish to your apps UI. Even more importantly, in an era of “flat design”, animation is one of the key ways to make your app stand apart from others. In this tutorial, you’ll learn how to use UIView animation to do the following: Set the stage for a cool animation. Create move and fade animations. Adjust the animation easing. Reverse and repeat animations. There’s a fair bit of material to get through, but I promise it will be a lot of fun. Are you up for the challenge? Create a single view application. Select the imageview and set View Create IBOutlet from imageview. `CTRL+DRAG` from imageview to the viewcontroller.swift You can choose from four different easing options: .curveLinear : This option applies no acceleration or deceleration to the animatio

How to create Car Animation in iOS swift 4 example

Image

How Create UISearchBar in iOS using swift 4

Image

UISearchBar and UISearchBarDelegate

Image
UISearchBar and UISearchBarDelegate One of the most important feature in an iOS application would be searching functionality, today we will be learning how to add search to our tableview application in Swift using UISearchBar and UISearchBarDelegate UISearchBar The UISearchBar class implements a text field control for text-based searches. The control provides a text field for entering text, a search button, a bookmark button, and a cancel button. The UISearchBar object does not actually perform any searches. You use a delegate, an object conforming to the UISearchBarDelegate protocol, to implement the actions when text is entered and buttons are clicked. You can hide and show the cancel button by setting `showsCancelButton` to false or true. UISearchBarDelegate The UISearchBarDelegate protocol defines the optional methods you implement to make a UISearchBar control functional. A UISearchBar object provides the user interface for a search field on a bar, but it’s th