Good tip from
iOS Developer Tips for using the “Related Files” button in the upper left corner of your code window (right next to the Back/Forward navigation buttons):
Xcode 4 : Related Files List
With Xcode 4 you can quickly access an assortment of files related to your project through the Related Files option in the Jump Bar.
Recently, I was having an issue I was having with subviews added to my UIButton objects that I was customizing. The buttons would behave fine if they were standard rounded rect buttons, but the moment I added a UIView and some UILabels to it, the taps stopped responding.
But I was able to resolve it, thanks to the tip provided here:
iPhone: Subviews in UIButtons block the touch, unless…
The solution boils down to something very simple and it makes sense when you think about it, but at first it seems strange:
All you need to do is set
userInteractionEnabled and exclusiveTouch to NO on the items that you want to add as subviews to your UIButton (and don’t set those properties to NO for the UIButton itself).
Once you turn
user interaction and exclusive touch properties on the subviews, your events will be sent to the underlying button (or at least that’s how I like to think of it happening…). off
I initially read the post wrong and set them to YES and couldn’t figure out why it wasn’t working. Then I went back and looked at the comments, which pointed out where I went wrong.
Hope this helps!
It was time to clean house a bit, so I wanted to remove all the currently installed applications in the iPhone Simulator. Turns out there’s a very simple way to do it…
1. With the iPhone Simulator running, click on the
iOS Simulator application menu.
2. Click “Reset Contents and Settings…”.
– A confirmation dialog will appear warning that “all installed applications, content, and settings will be moved to the trash.”
3. Click “Reset.”
All the applications will be removed and you can proceed with a clean slate.
Posted in iOS, iOS SDK, ipad, iphone, mobile development, Xcode |
Tagged howto, ios, ios sdk, ipad, iphone, quicktips, simulator, tips, xcode |