XCode – Add a file in project at build time

Imagine that you need to add a file in your XCode project the first time that you build the app.

For instance, you have a configuration file, in Swift, that you want to compile and embed in your app (instead of using a PLIST file that is in CLEAR…) during the build phase and of course use in your project.

Continue reading XCode – Add a file in project at build time

XCode – launch multiple simulators

Everyone that use XCode knows that to run the app in a different device, you need to select one from list, launch and wait the device to boot…
Well, it’s a mess. I hate a lot this feature.

So, today a trick to run all of your simulators and from XCode select the rigth one without wait the boot and debug the app… simultaneously!

It’s a great trick. Tried with XCode 7.

Continue reading XCode – launch multiple simulators

[Xcode] – Introduction to Auto Layout

Editor’s note: If you’ve downloaded the Xcode 6 beta and played around with it, one thing you may notice is the change of Interface Builder. The default view controller is now wider and doesn’t look like an iPhone 5. When you position a button in the center of the view and run the app, it doesn’t look good. The button is not centered properly.

Continue reading [Xcode] – Introduction to Auto Layout

[ObjC] UIButton with rounded corners

APRoundedButton is a simple XIB/Storyboard extension to make rounded custom buttons, without writing one line of code!

Requirements

  • ARC
  • iOS 7+
  • Xcode 5

How to use

Continue reading [ObjC] UIButton with rounded corners