Skip navigation

Tag Archives: ipad

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 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 (http://www.CroixProvence.com), 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];

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 »