Candylicious iOS Tips

Menu & Search

Best resources for learning iOS

September 21, 2015

I’ve been working on iOS for the past few years and my learning journey went like this: Start exploring the basics of iOS development (I learned the most with the Stanford’s iTunes U videos and slides – back then it was iOS 5 or 4 if I remember correctly) Figure out what your goal is and you […]

Continue Reading

Hiding views with Auto Layout

September 16, 2015

If you’re using Auto Layout, you’ve certainly encountered a case where you had to hide some views. Without Auto Layout, that’s rather straightforward. You just access the views’ frame, set its height to 0 and reassign it to the view. With Auto Layout, this requires a bit more work, but the reward is much greater. […]

Continue Reading

Animating Auto Layout Constraints

A frequent question amongst iOS developers is how to animate Auto Layout constraint changes. Previously, we’ve been adjusting and setting the frame inside the animation block of the UIView.animateWith… method. Now, all we have to do is: Adjust the constraints Call view.setNeedsLayout() (sometimes, not always necessary) Call view.layoutIfNeeded() Write the animation code like you’d usually do […]

Continue Reading

Automatically resizing UITableViewCells with dynamic text height using Auto Layout

August 16, 2015

I’ve already covered how to make UITableView Row Height Dynamic for Downloaded Images, but today I’ll show you how to properly set up automatically sized custom UITableViewCells from iOS8 onward. This has been an issue throughout all iOS versions and most of us just went with the preferred way of implementing heightForRowAtIndexPath: method and calculating UILabel size […]

Continue Reading
Page 2 of 3 1 2 3
Type your search keyword, and press enter to search