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.
Tag: programming
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