Posts

Showing posts from July, 2020

Swift Programming: Big O notation for complexity checking

Image
Big O Notation: Complexity measurement and optimization for Swift programming “Big O notation”, a well-known concept in computer science and a must ask topic in any technical round for developer job. If you heard this term for the very first time, no worry, here you will understand what this “Big O notation” all about. “Big O notation” is a general computer science concept, which helps the developer to measure the time and memory space complexity of an algorithm or program block. Measuring complexity is a common practice in a development environment for many causes, like, To determine the efficiency of an algorithm (asymptotic analysis). To determine the requirement for algorithm optimization. Find total execution time for given input data. Cost estimation on executing time. Here “Big O notation” plays a significant role to determine the time and memory complexity of an algorithm, depend upon the given number of inputs or datasets. It helps to understand how the number of

iOS App Dev: Custom View Framework to add own properties into the UIView

Image
UIView, the view class for iOS App Development, on top of which, you will do all kinds of UI design related tasks. UIView serves like a service table where you will put UI Controls for a user to start interaction with your App. By default, an UIView has properties which been assigned in the UIView class. These properties are easily accessible from the attribute inspector. As shown in the above picture, these are the default properties of a view in iOS App development environment. But if a developer wants to expand more features into the default view, you have to inject the new features to the view by creating a custom framework. Here we will learn a step-by-step procedure to create a custom framework to add extra settings or features to default UIView’s view. Scenario Say, you have a requirement to create an App where besides the default view design, you may need some more extensive design components for a particular view. A colorful and thick border surro