Find which child view was tapped when using UITapGestureRecognizer

This will find the innermost descendant view at the event’s location. (Note that if that child view has any interactive internal private grandchildren this code will find those too.) UIView* view = gestureRecognizer.view; CGPoint loc = [gestureRecognizer locationInView:view]; UIView* subview = [view hitTest:loc withEvent:nil]; In Swift 2: let view = gestureRecognizer.view let loc = gestureRecognizer.locationInView(view) … Read more

iPad: PNG Crush error

I had the same problem, but it wasn’t because of a corrupted png : it was because two PNG files had the same filename in different directories of my source tree. What was peculiar was that the errors (I had 4 files which had “twins”) were not identical from one build to another. On one … Read more

iPhone/iPad App Code Obfuscation – Is it Possible? Worth it? [closed]

There doesn’t seem to a code obfuscator for Objective-C. But let’s assume for a moment that one does exist. Apple will probably not reject an obfuscated app as long as it doesn’t crash. The main question is: what is the point of obfuscation ? Normally, you want to obfuscate code to protect your knowledge, for … Read more

Targeted for iPad option in Xcode

I tried both with and without and diffed the generated files. The only difference it makes is whether the pre-built shouldAutorotate: method returns YES to all orientations (normal for iPad apps) or just for portrait (normal for iPhone apps). It also changes the dimensions of the UIView in the generated XIB file (if you tick … Read more

Xcode 4 + iOS 4.3: “No Packager exists for the type of archive”

you may have some linked projects (like librairies) inside your main project. Go to the Build settings of those projects and set the setting “Skip install” (Deployement category) to “Yes”, but leave the “Skip install” of the main project to “No”. Build, archive, and you should be able to select the ipa package.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)