iPad
I am now at D3signerd.com
I am in the process of moving all my content over to a new hosting provider. You will now be able to follow me and my rants over at www.d3signerd.com
Read MoreAdding TouchOutside functionality to a UIView in iOS
A pple has done a good job in regards to touch notifications within the UIView. But, as with any framework, I need just a little more. I kept running into situations that required the need to know if the user has tapped outside of a UIView’s bounds. As you may have guessed, Apple did not bake this into the default UIView functionality. So I decided to put together a clean solution and in the end I was able to create a simple delegate enabled UIView that could easily be added to your project.
Lets walk through creating this functionality in a UIView and then how to add it to a project.
^Creating our Touch Outside enabled UIView
To start off we are going to create the custom UIView classes. Create two new files in your project and name them “TOTouchUIView.h” and “TOTouchUIView.m”. The open up the new header file, TOTouchUIView.h, and add the following lines of code in bold.
Read MoreDeep-dive into CALayer Shadows in iOS
T oday I dug into how CALayer shadows work in iOS. I know there are several posts out there that do a good job of explaining how to add one. I just did not find one that felt complete. In addition to how to add a shadow, I had learned a few tricks that help optimize those layers for less of a performance hit to your application!
Let’s jump in and see how!
^How do I add a basic shadow?
Hold on, lets take a quick step back. Before we can start to interact with the layers in an application we need to import the Quartzcore header file. Normally I would import this in my class header file like I did below
Read MoreEmbedding fonts in your iOS App
O ne of my favorite ways to set an application apart from the rest would be to add a custom font. Designers love this because it will give more character to your products and it is easy to do. So, lets look at how this is done.
^How do you add your font?
There are only a few steps that you need to take in order to add a custom font. First, you need to add your font to your xcode project. I like to keep things a little organized and will create a grouping structure similar to this: MainFolder/Resources/Fonts. Look at the example below.
Read MoreImage Anti-Aliasing in iOS
R ecently I had been playing around with a lot of object transforms in iOS and I noticed that the more you scale and rotate an image, the more it would start to show jagged edges or pixelate. At first I thought this was an issues with the image itself. Later I found out that this was an issue in iOS with no real good solution. First of all I was a little surprised that this was even an issue but after a few hours of playing around I eventually found a few tricks that will provide better anti-aliasing and smoother images.
^Providing a clear border around your images
I had found that no matter what you did to your images the borders would always end up jagged and I had tried just about everything. For example I had been using a UIImageView and settings like the following made no difference at all.
aliasImage.clipsToBounds = NO; aliasImage.layer.masksToBounds = NO;Read More
