Posts

Our Favorite Xcode Shortcuts

Image
1. Edit all in scope: CTRL+⌘+E This shortcut allows you to change the name of a variable or function and have that change take effect in your entire file. Here is an illustration: Before After We simply clicked on `label` within the `set` method, typed ⌘+CTRL+E, and changed the name to `titleLabel`. 2. Fix all in scope: CTRL+⌥+⌘+F This one is a handful, but it’s super handy. It will allow Xcode to automatically fix all errors that can be fixed automatically. 3. Open quickly: ⇧+⌘+O Type ⇧+⌘+o and start typing in the search box that opens. The strength of “open quickly” is that the search engine is able to discern which files or functions you’re looking for even if you only enter parts of the name. For example, typing “appfinish” will bring up “applicationDidFinishLaunching” as part of the results. 4. Searching within a file: CTRL+6 This powerful shortcut opens the jump bar so you can see all existing symbols in the open ...

18 Swift concepts for Objective C developers

So, let me guess, you’ve been an iOS developer for a while, or a junior developer as myself, working with Objective-C and you are good at it, you don’t want to use anything else for your applications and you can not imagine your life without putting your code inside brackets. If that’s the case this blog post is for you. As you know, Swift is becoming more and more popular these days and recruiters and companies are requiring developers that know this language more often. Here is a short mix between some topics that I’ve been asked in past interviews and some others that will help make the transition to Swift from Objective-C a little bit easier. 1 — What is the difference between structs and classes? One of the most important differences between structures and classes is that structures are value types and are always copied when they are passed around in your code, and classes are reference type and are passed by reference. Also, classes have Inheritance which allows one cla...