UIView Frame vs Bounds


UIView Frame vs Bounds When working with views and trying to configure the layout for an application, it’s important to know the difference between a view’s bounds and frames. Many developers get confused between the frame and bounds and when they should use the two properties. The main reason is because many developers do not know... Continue Reading →

Advertisements

Delegate vs Notification in iOS


Both terminology provide a way by which iOS object communication to each other in iOS application Delegate faster creates a has-a relationship between the two classes Good architecure, You gain compile time checking for required methods when you use  protocols with your delegates, so you know when you compile if you're missing any required methods... Continue Reading →

What’s new in swift 4.2


Good news: Swift 4.2 is now available in Xcode 10 beta! This release updates important Swift 4.1 features and improves the language in preparation for ABI stability. 1. toggle() for Bool swift propose adding a mutating func toggle to Bool. It toggles the Bool. var isVisible = true print(isVisible.toggle()) // false 2. Adding in-place removeAll(where:) to the Standard Library It is common to want... Continue Reading →

Resize UITableViewCell size without fluctuation and jerk.


You should use beginUpdates() and endUpdates() to change content size of UITableViewCell, in this case heightForRowAtindexPath will called for each cell in tableView and update height of TableviewCell.You should use beginUpdates() and endUpdates() to change content size of UITableViewCell, in this case heightForRowAtindexPath will called for each cell in tableView and update height of TableviewCell.for... Continue Reading →

UIApplication and its Delegate


1. UIApplication :  root class UIResponder A major role of your app’s application object is to handle the initial routing of incoming user events he application object maintains a list of open windows (UIWindow objects) and through those can retrieve any of the app’s UIView objects The UIApplication class defines a delegate that conforms to... Continue Reading →

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: