Skip navigation

Monthly Archives: January 2013

That’s right:  you can now download SecretCam in the Apple App Store for FREE!  Then if you like it, you can upgrade to the full version for only 99 cents.  Please check it out, give us feedback, leave a nice rating/review if you wish, and buy the full version if you like it!

Triple Two is pleased to announce our first submission to Apple’s App Store:  SecretCam!  Available for both iPhone and iPad, SecretCam is a fun, playful app that is designed to trick your friends into taking photos of themselves.  Its silliness and ease of use is perfect for children, even if those “children” happen to be well into their thirties. 😉 Check out SecretCam today by clicking on the App Store link below, and please remember to leave positive reviews and ratings!

Download SecretCam on the App Store

I was recently at wit’s end with what seemed like it should be a non-issue: I had taken a screenshot of my iPhone, cropped the image down to a single button, and was then trying to display it as the background image on a UIButton. The problem was that the image would appear twice as large. After stepping through the code, I realized that the UIImage object had a scale value of 1.0f instead of 2.0f like it should (I have an iPhone 5 with Retina Display). After some snooping around in Apple’s UIImage reference, I realized the fix was simple: I just had to add “@2x” to my image’s filename.  BUT there is one caveat:  when referencing the image’s filename in your code, do NOT add the “@2x”.

For example, if your image filename is “HelpIcon@2x.png”:

INCORRECT (image has scale factor of 1.0f and is too large)

[button setBackgroundImage: [UIImage imageNamed:@"HelpIcon@2x.png"] forState:UIControlStateNormal];

CORRECT (image has scale factor of 2.0f)

[button setBackgroundImage: [UIImage imageNamed:@"HelpIcon.png"] forState:UIControlStateNormal];