When you are working on an iOS app, you invariably end up creating buttons on your view controllers. For some of the apps, you know exactly where everything goes and you place everything beforehand in your storyboard file. But if your app is more complex, you may want to create the buttons dynamically. This means … Continue reading Generating UIButton Programmatically
Tag: Objective-C
Plus vs Minus In Objective-C
Whenever you are working with an iOS app, you would have seen those functions and how they have a plus or a minus sign at the beginning. Ever wondered what they are? Objective-C requires that the interface and implementation of a class be in separate code blocks. That's the reason you will see a .h … Continue reading Plus vs Minus In Objective-C
How To Trigger A Segue Programmatically In iOS
You have your storyboard ready and you have created the necessary segues. Great! Now how do we trigger these segues programmatically? There are many different ways to do it. One of the nicer ways to do this is by connecting two scenes in a storyboard using a segue that is not attached to an action. … Continue reading How To Trigger A Segue Programmatically In iOS
Dismissing The UITextField Keyboard
Let's say you are designing an iOS application which takes user input using a text field. When you add a text field to your storyboard and run your application, you will see that when you tap on the text field, the keyboard pops up automatically. But when you tap the return key, they keyboard doesn't … Continue reading Dismissing The UITextField Keyboard
iOS App: Separator Lines And Back Button In Master-Detail Application
When you create a master-detail application in iOS, a few things appear by default. If you notice it, you will see that the empty cells are separated by lines. But we want the separator lines to appear for items that are there in the table. Also, you will notice that the back button in the … Continue reading iOS App: Separator Lines And Back Button In Master-Detail Application
How To Load Different XIBs Based On The Device Type?
What's with all the different sizes of the iOS devices? I mean, sure we have autolayout feature that takes care of things in general. But if you want real aesthetic perfection, then you are better off having a separate XIB for each screen size. If you create a universal app, Xcode automatically creates two separate … Continue reading How To Load Different XIBs Based On The Device Type?
Transition Effects In iOS Apps
One of the more visually appealing aspects of iOS development is the crisp transition effect. Whenever you see a beautiful iOS app, it has all the elements interacting with each other seamlessly with gorgeous transitions and other visually appealing effects. If you have tried your hand at building one of these apps, you must have … Continue reading Transition Effects In iOS Apps
Storyboards vs XIBs
The concept of storyboarding was introduced by Apple in iOS 5. This was the first major deviation from using the interface builder to build iOS apps. Storyboards were created to help developers visualize the flow of the application. It is a lot like having a bunch of XIBs, but in a single file. You can … Continue reading Storyboards vs XIBs
How To Set The Background Image For Your iOS App?
When you are designing your iOS app, you cant help but think about the aesthetics. You want to present your app in the best possible way. There are some things you cant ignore, like the icon, or the background, or the first screen. These are the things that tend to impact your app the most. … Continue reading How To Set The Background Image For Your iOS App?
How To Remove The Gloss From The iOS App Icon?
Not a big fan of the glossy effect on your iOS app icon? Well, let's remove it then. The glossiness in the app icons epitomizes the skeuomorphic design that Apple embraced a few years ago. When it first came out, it was all new and exciting. Apple is now moving to a flat design with iOS … Continue reading How To Remove The Gloss From The iOS App Icon?