Skip to content

Mastering iOS

A developer's search for code greatness

Menu

Primary menu

  • Home

Category Archives: Tips & Tricks

Rounded images

Posted on December 29, 2013 by Vasilica Zmeu — 1 Comment ↓

Rounded avatars seem to be very fashionable these days. Even Apple adopted the rounded images for contacts.  If you’re wondering how to achieve this in your app here is the answer. All we need to do is adjust the CALayer Continue reading Rounded images→

Posted in iOS 7, Tips & Tricks | 1 Reply

Xcode 5 – Tips and tricks

Posted on December 27, 2013 by Vasilica Zmeu — 2 Comments ↓

Xcode is the most used IDE for iOS development. Apple is doing a great job in updating and adding features to it. Knowing how to take advantage of its capabilities can help you code faster and more efficiently. Xcode’s workspace Continue reading Xcode 5 – Tips and tricks→

Posted in Tips & Tricks | 2 Replies

How to sort NSArray with custom objects in it

Posted on October 28, 2013 by Vasilica Zmeu — 2 Comments ↓

Every app has to work with some data and this data is usually structured in custom classes. A music app will probably have a Song class, a chat app will have a Friend class, a recipe app will have a Continue reading How to sort NSArray with custom objects in it→

Posted in Basics, Tips & Tricks | 2 Replies

How to check iOS version at runtime

Posted on October 26, 2013 by Vasilica Zmeu — No Comments ↓

iOS 7 has a very good adoption rate, however you might still want to support people that are running older versions of iOS. You can load different storyboards or xib files, different launch screens and handle API differences. You can Continue reading How to check iOS version at runtime→

Posted in Basics, iOS 7, Tips & Tricks | Leave a reply

How to concatenate strings

Posted on October 5, 2013 by Vasilica Zmeu — 2 Comments ↓

Let’s assume we have these strings: NSString *firstString = @”This is the start”; NSString *secondString = @”of a great”; NSString *thirdString = @” sentence that ends here”; The easiest way to concatenate two strings is by using the stringByAppendingString: method. Continue reading How to concatenate strings→

Posted in Basics, Tips & Tricks | 2 Replies

How to make UITextField move up when keyboard is present

Posted on October 4, 2013 by Vasilica Zmeu — 12 Comments ↓

When the user taps in a text field, that text field becomes the first responder and automatically asks the system to display the associated keyboard. The appearance of the keyboard might obscure portions of the UI that you would like Continue reading How to make UITextField move up when keyboard is present→

Posted in Step by Step Tutorials, Tips & Tricks | 12 Replies

How to manage the keyboard for a UITextField

Posted on September 19, 2013 by Vasilica Zmeu — No Comments ↓

When you are dealing with UITextFields one thing you need to handle is the showing and hiding of the keyboard. To show the keyboard all you need to do is make your text field the first responder like this: [self.myTextField Continue reading How to manage the keyboard for a UITextField→

Posted in Tips & Tricks | Leave a reply

Primary Sidebar Widget Area

Categories

  • Basics
  • Clean Code
  • Good Practices
  • iOS 7
  • iOS 8
  • Step by Step Tutorials
  • Swift
  • Tips & Tricks
  • UI Elements

Recent Posts

  • The Boy Scout Rule
  • Reading a file in Swift
  • Alerts and action sheets in iOS 8
  • Swift Fun with Timers and GCD
  • 6 things I love about the Swift programming language

Archives

  • May 2018 (1)
  • September 2016 (1)
  • April 2015 (1)
  • March 2015 (4)
  • February 2015 (2)
  • October 2014 (1)
  • July 2014 (1)
  • June 2014 (1)
  • March 2014 (1)
  • December 2013 (2)
  • November 2013 (2)
  • October 2013 (5)
  • September 2013 (3)
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
Copyright © 2023 Mastering iOS. All Rights Reserved.
Theme: Catch Box by Catch Themes
Scroll Up
Enter your name and email to receive new awesome Swift tutorials.
Your information will *never* be shared or sold to a 3rd party.