Actually i am an Android App Developer and now I am learning IOS app development.
In android we can create a seperate xml layout and can include it in another layout. I want to achieve same in IOS. I want to create a custom layout and want to include it programatically to another layout.
Is this possible with IOS. If yes then how?
Well i am using Xcode with swift 2.3
Yes you can do it. First of all you have to create simple fileName.swift file
select this one.
Now again Create View (it will create a .xib file where you can design your layout)
Now you select View and create your UI like this.
now open sample.swift (Here) and write simple code.
now you can use this view to add any where in your project. To add this add simple View in any StoryBoard ViewController (Drag and Drop)
Now Main Step to add your Custom View in your View Select your View from ViewController (where you want to add this) and simple Write class name in identity Inspector.
Now Simple Run the project and Bingo..