UIButton not responding to touches?

UIButton not responding to touches?

I’ve been developing for over 3 years now, and sometimes this will still get me. Perhaps posting a blog will get this out of my system forever. Anyway, the scenario is you create a UIButton, you can see it, but you can’t touch it (it does not highlight). Here are 2 things to try: Make sure the UIButton is not blocked by another view. If your UIButton is behind another UIView (even if it’s transparent), it may be blocking touches as well. Either move it forward in your nib hierarchy or call [containerView bringSubviewToFront:m.

UIImageView Reflection with Perspective and Fading

UIImageView Reflection with Perspective and Fading

The goal: To create a UIImageView reflection that is flipped with perspective and fading. In other words, create this effect:                       *Obviously, import the QuartzCore Framework and import it into your file. I was able to accomplish this effect in 5 steps: Create two UIImageViews in your nib. Create a UIImageView for your main image, then another for your reflected image. Make sure their view content modes are both set to Aspect Fit. Also, make the frame size of the reflecte.

Meek is Murder “Algorithms” Best of 2011 Round-up

Meek is Murder “Algorithms” Best of 2011 Round-up

The album “Algorithms” was featured in some “Best of 2011″ blogs this year. I kind of feel like we pulled something of a fast one on people as we are, for all intents and purposes a DIY, unsigned band- so being mentioned in line with bands like Mastodon or blink 182 is pretty damn funny to me. I had something of a shitty year, but making this album and hearing that some people actually enjoyed it was really nice. Anyway, I felt like pooling the blogs all together here for some reason. I left out out some of the blogs th.

sometimes i draw

sometimes i draw

“becoming a man”               “world’s best dad”                      

[NSTimer isValid] causes crash?

[NSTimer isValid] causes crash?

Is your NSTimer causing a crash when you check to see if it is still valid? Perhaps you are calling invalidate in touchesBegan or the like and would like to stop your timer while the user interacts with the containing UIView. Well, the cause of the crash is the fact that when you call invalidate on an NSTimer, the timer is automatically released, but may still have a reference. The solution, set your NSTimer to nil after you invalidate, like so: if ([scrollTimer isValid]) { [scrollTimer invalidate]; scrollTimer = nil; }  

Me and my girlfriend as South Park characters and The Beatles

Me and my girlfriend as South Park characters and The Beatles

Me and my girlfriend inevitably become subject to my useless Photoshop experiments.  

What Garageband for iPad Needs

What Garageband for iPad Needs

Garageband for iPad rules. Here are some things that would make it rule harder: -Time signatures (limited to 4/4 currently)! This one’s big time… -Custom Keys for Smart Instruments. -Show the total track time somewhere. -Fades! -Pitch correction That is all.

Delete Last Row of UITableView, Exit Editing Mode

Delete Last Row of UITableView, Exit Editing Mode

I have an editable UITableView (i.e. self.navigationItem.rightBarButtonItem = self.editButtonItem;). I realized that when I was deleting the last row in the table view (no cells remaining), it was not exiting edit mode and the rightBarButtonItem still said “Done.” Needless to say, this could cause some confusion to the user, especially if you still have cells in the table view that are not editable. I wanted my table view to automatically exit edit mode when I remove the last editable cell. However, in my commitEditingStyle function.

UINavigationController inside UITabBarController bug?

UINavigationController inside UITabBarController bug?

I recently encountered a bug(?) with UINavigationController that manifests itself when you create one inside a Tab Bar view. Mind you, I don’t like using Apple’s Tab Bar template (I find it messy with the first view and the tab bar controller in the same file),  preferring to create my tab bar views programatically. The problem is, the nav controller doesn’t “fade out” the selected table cell when you go back a view in the navigation controller. In debugging the problem I discovered it is not sending viewWillAppe.

Revisiting My Life As A Bird…

Revisiting My Life As A Bird…

This past summer I started recording what I was hoping would be the first My Life As A Bird full length. I completed several electric songs with drums as well as some acoustic re-recordings. Some things were left unfinished and with my several employments and ever-shifting attention span I put the project on hold. There was still a lot of work to be done to complete the full-length and I just didn’t have the time to spare. So I was listening back to some of those old recording and decided that while there is still a lot I want to d.