Month: July 2018

Chapter 10 : Swift Literals

As per wikipedia meaning of Literal in computer programming is a notation for representing a fixed value in source code. Almost all programming languages have notations for atomic values such as integers, floating-point numbers, and strings, and usually for booleans and characters; some also have notations for elements of enumerated types and compound values such

iOS Tutorial: Want your iOS app to scroll in two directions, like Netflix?

Nest UICollectionView inside UITableView for independent scrolling, Horizontal scroll inside UITableView Appstore, Netflix and most of the apps having dynamic horizontal scrolling with vertical tableview Approach Let begin to achieve it 1.Create  A demo App 2.Open Xcode 3.Create new project (File -> New ->Project -> Select IOS -> Application ->Single view Application) 4.I have name

Chapter 9 : Swift Constants

  Constants is the fixed value of a program that may not be changed during the program execution, means we cannot change or modified its value after its definition. Constant can be a Enumeration/character / String / Float / Integer type .  Syntax:  we have to use let keyword for it let Name_of_constant =  initialize_value

Chapter 8 : Swift Tuples

As per definition of english word Tuple – A data structure consisting of multiple parts. So tuples are used to group multiple values in a single value.Its of any type. Syntax : var Tuple_name = (Tuple_value1, Tuple_value2, Tuple_value1….to any number of values) For Example : 1) Single value tuple var errorType = (404) we can

Chapter – 7 Optionals

  Optionals type is used to handle if there is no value , it says there is a value and it is equal to x or there is not a value at all. It has two value None or SomeValue(T) where T is an associated value For Example : for string var someStr: String? or

Chapter 6 : Swift Variables

A variable is a storage location name, identified by a memory location , paired with its associative name or identifier having some quantity of information or value. Swift 4 have below basic variable As discuss in last Chapter – 5 Int or Uint Float Double Bool Character NOTE: There are few more types of variables

Detect Screenshots in Objective-C

A number of social apps are trending in App Store now a days. Where user upload his profile pics and share moments. But due to a capture option provided by iPhone , anyone can take screenshots of your profile picture without notice by you and share anywhere. So removing such glitch or capture your image

Chapter 5 : Swift Data types

In programming language we need to use different type of variables to store and transfer information from one view to another. Whenever a variable is  created we reserve some space to the memory,So variable are the reserved memory locations to store values. There are different type of variables in swift like character , string ,float

Chapter 4 : Swift Basic Syntax

In last chapter we have create simple default playground Hello world Code Now in this chapter we learn about basic syntax which we can use further in our Code. use of import and UIKit 1.import statement is used to import any framework or library of Objective-C or C library. 2.print  statement is used to print

Chapter 3 : Swift Environment Setup

As we discuss in our overview , Xcode provide playground platform for learning purpose and we are showing how we can work into it. What we need (with download link) : Xcode IDE for iOS / OS x application development  To download Xcode you need to enroll your self at  developer account   You can find