I’ve been using NSLayoutAnchor class to define constraints on my UIView controls. But when working with UIScrollView i got stuck. It was not scrolling down or up as i add new subViews in it. As it turns out, you need to calculate the spacing between the elements in scrollView, yourself.
Top Anchor must be set to ScrollViews' I have a container UIView controller and it’s constraints are set to the safeArea like this:...
Making your apps look good on any dimension is not quite easy on all platforms, but when developing on xcode, Apple made it easy to make them look fit on any screen size. You achieve this by using constraints. Open up your storyboard and i assume that you got a few elements on your view and lets a background image.
Make background fit on all sizes Your background image should already be in the full-size of the screen, and after doing that, click on the little button right at the bottom of the pane (The 2nd button from the right....
Say that I needed an alert for my app to let the user that my app has some mistakes or you i wanted to user to select some options before moving on, in cases like these you may wanna show a messageBox like alert using the UIAlertController class, let’s begin
Initialize class instance First of all we need an object created from this class:
var alert : UIAlertController = UIAlertController(title: "Somethings happening", message: "Whadaya wanna do?...
Hi, i’ve been a lot busy lately and i could not find time to work on my blog, so new updates here:
I’ve started working on ios apps using swift xcode and stuff We had to take a break for game development after publishing 2 games on play store (search for Eyula) and now working on our mobile apps (3 app simultaneously) and we are busy, again I want to write a bit basics of my Swift development journey, so enough talk here shall we begin?...