iOS SDK: Pop up window in Swift

One of the most popular posts in my blog is the tutorial for creating a Pop-up window with iOS SDK using Objective-C. Since then many readers reached me out asking for a Swift version of the Pop-up. In general the process is exactly the same in Swift (except the language used to write the code of course...), so I am not going to dive into the process of creating the .xib files again.

Migrating to modern Objective-C

Last year at WWDC 2012, Apple introduced Modern Objective-C alongside iOS 6. So what's this? In a few words, it is a huge step forward to help developers write less code to achieve the same things. Worth mentioning is that modern Objective-C has nothing to do with iOS versions, it has to do with the compiler, which means that it is backward compatible. Let's dive into the basics of transitioning to modern Objective-C. Xcode offers a refactoring tool (edit>Refactor>Convert to Modern Objective-C syntax) which will convert your project to modern objective-c (it will also set the appropriate flag in build settings). If you would like to adopt modern Objective-C when writing your code, which is the best, as it is intended to help you write less lines of code, general rules for doing so are the following.

iPhone programming: How to force your app to run in landscape mode

As you may have mentioned, lot of iPhone apps (especially games) run by default in landscape mode! You can easily force the app you develop to run in landscape mode! Let's see how: In Xcode find the file [YourAppName]-Info.plist and open it up. Right click on the table and select "Add Row". Select "Initial interface … Continue reading iPhone programming: How to force your app to run in landscape mode