In an iOS project I am currently working on, I got a request to create a pop-up window. Trying to figure out how to do it, I came up with a solution that is pretty easy to implement and very straight forward. All you need is a view controller with a transparent background and a subview (your popup window). After creating the popUpViewController, you can just call it from any other view controller.
Category: Apple Mac
Review: Iconic Book: A Photographic Tribute to Apple Innovation
Ten days ago, I've came by Iconic Book: A Photographic Tribute to Apple Innovation” while surfing the net. First thing that crossed my mind was: "Wow that the Apple Bible". I immediately ordered my copy ($75 cost for the book plus 50$ for ship costs -I live in Greece-). Three days ago I found a note in my door, that I have a parcel waiting for me in my nearest post office. Next morning I got it. First impression? This book is much bigger than I thought it would be. It is elegant, printed in high quality paper, exactly like an Apple book should be.
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.
Extend UIImageView class to easily add border to images
When coding for iOS, I usually style images with shadows show the layout looks more elegant. Adding shadows is easy, but when it comes to adding borders to UIImageViews things become trickier. That's because when adding a border to a UIImageView, this border hides info from the image. To solve this issue, we have to rescale the image and then add the border to the scaled image.
Thoughts on OS X Mavericks
Alongside iOS 7 in WWDC, Apple also announced a new version for its desktop operating system. The new version is the first OS X version that is not named after a cat. From now on OS X will carry names of famous places in California. First in this new naming series is OS X 10.9 Mavericks.
Thoughts on iOS 7 beta
As every year at WWDC, this year Apple announced a new version of its mobile operating system: iOS 7. This version is a radical departure from any other iOS release. From design perspective it is entirely new.
iOS SDK: animations and effects in UIImageViews
iOS SDK is well known among mobile app developers for its elegant APIs that make creating polished and crafting UI experiences a piece of cake. In this tutorial I will present some small (and easy to implement) code snippets for adding effects to UIImageViews. Note that these effects are added on the fly … Continue reading iOS SDK: animations and effects in UIImageViews
MacBook Air (Mid 2012) review
After about 5 years, the time has come to change my MacBook Aluminum (first aluminum unibody macbook series). My new machine is a mid-2012 MacBook Air with 8gigs of RAM. My old machine keeps working fine -only thing I upgraded through all these years is RAM (I bought it with 2GB and doubled it to … Continue reading MacBook Air (Mid 2012) review
How to reset os x password with recovery partition
In case your forgot or lost your os x password (and you have no other user with admin rights), you have to reset the default user's pass. This can be done via the Mountain Lion Recovery HD partition. Follow these steps. Shutdown your mac. Boot it. Hold “Option” at boot and select the “Recovery HD” disk … Continue reading How to reset os x password with recovery partition
Learn to use Xcode 4 snippets
One of my favorite features of the new Xcode 4 is code snippets. Code snippets let you use (and re-use) common classes and objects by simply typing a shortcut. For example if you type dealloc, Xcode 4 automatically generates the deallocation method for you: - (void)dealloc { <#deallocations#> [super dealloc]; } To add your code … Continue reading Learn to use Xcode 4 snippets