Skip navigation

I was trying to upload a new photo to Instagram, but the image was too long width-wise to fit in Instagram’s “square”. Instagram doesn’t let you zoom out on a photo, so I knew I basically needed to add some extra white space to my photo so it would be square again. You can download apps that will do this for you, but the quick-and-easy method is simply to open your photo in the native Photos app on your phone and then take a screenshot of your screen (on iOS devices, push the Home button and the Power button at the same time. For Android devices, push and hold the Power button and the Volume Down button for 1-2 seconds until a brief white flash appears). Now you should be able to easily upload a cropped version of your screenshot into Instagram!

I recently purchased a new MacBook Pro and it came loaded with Mac OS X 10.9 (commonly referred to as Mavericks). Installing SCPlugin for svn is always one of the first things I do with my new development machines, but I ran into trouble getting the SCToolbarButton to “stick” up in my Finder window. After fruitlessly searching the out-of-date SCPlugin documentation for hours, I finally discovered that in Mavericks you now have to hold the Option + Command keys before dragging the SCToolbarButton icon up into the corner of the Finder window. Otherwise, the Finder window will not accept anything dragged onto its menu section. I hope this saves you all some headaches!

I had a UIImageView control set up in one of my Views using Interface Builder, but I wanted to resize the UIImageView control programmatically depending on the device’s screen size.  I spent several hours trying all sorts of techniques, but I always had problems.  If I resized the UIImageView’s frame in viewDidLoad, it simply wouldn’t work.  If I resized its frame in viewDidAppear, it would work but the user would see the original-sized image before switching to the updated size which I felt was ugly and unnecessary.

I finally found a solution that would show the correctly resized UIImageView right away, but it required me to remove the UIImageView from my .XIB file, remove the outlet from Interface Builder, and remove the IBOutlet from my header file.  Then I simply programmatically added the UIImageView to the view in my viewDidLoad like so:

UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 173, 728, 771)];
imageView.contentMode = UIViewContentModeScaleAspectFit;
imageView.image = [UIImage imageNamed:@"tutorial1.png"];
[self.view addSubview:imageView];

That’s right, friends:  SecretCam 2 is now available in the Apple App Store!  Featuring the much-anticipated Rear Camera Mode for discrete photos and faster performance, it’s a must-have for any iPhone/iPad owner.  We were also blessed to be able to work with the lovely Croix Provence for some updated sample photos.  Please check out her website (, and download or update to SecretCam 2 today!

Download SecretCam in the App Store

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];

Okay, so this isn’t really an iPhone development issue per se, but it was driving me crazy nonetheless.  When I get into my car, my iPhone automatically connects to the car’s Bluetooth and all calls/music play through the car’s speakers.  This is great except for text message alerts:  since they’re so short, apparently the delay opening the Bluetooth link causes them to basically not get played at all.  Now I could disable Bluetooth completely on my phone but that seems like overkill, and I like the hands-free calling experience it provides.  What I needed was a quick way to toggle the iPhone’s speaker connection from my car to itself, and I finally found it! Read More »

After finally submitting my first app to Apple’s App Store, I figured I should pass on some helpful tips that I learned during the process.

  1. If you have an idea for an app, go ahead and create the application in iTunes Connect now.  You will have to upload some images for icons and screenshots, but those can be changed later.  You won’t have to submit your app’s binary yet.  Why go through all of this trouble so early on?  Because it prevents any other developers from taking your app’s name! Read More »

I was trying to make an iPhone app that performed what I thought was a simple task:  seamlessly transitioning from the default image displayed when the app was opened (Default.png) into a fullscreen UIImageView that showed the exact same image.  Unfortunately I kept running into alignment problems where one image seemed to be displaced by 20 pixels (40 pixels on retina displays), and initially I couldn’t even tell whether it was the default image or ensuing UIImageView image that was offset.  I eventually figured out that it was the UIImageView image that was the problem, but determining why was a bit trickier. Read More »