All posts in Dev Tips

Simple Twitter integration on iOS5 with TWTweetComposeViewController

Adding Twitter was such a mess before iOS4. If you wanted to add a photo along, it was even more messy. But now with iOS5, it’s soooooooooo simple! :D Here is how.

Continue Reading →

Using numbered image on UIImage with NSString with format

When listing images on UIImageView, there’s several way to name your image and show it. On this post, we’ll take a look at 2 ways on doing it. First is simply using ascending integer without digit limit. (e.g. image1.png, image2.png, …. , image112.png, etc). Second is limiting digits. (e.g. image001.png, image002.png, … image112.png, etc).

Continue Reading →

Stop moving UITextView up automatically on iPhone

UITextView is a good class to use when it comes to viewing text. It automatically works for long touch for copy and paste stuff which makes it better than UILabel on the cases it’s needed.

But when you use it on small area with editing feature, it gets frustrated because it automatically moves up and cuts off the top. Here is how you can solve the problem.

Continue Reading →

When transparent status bar makes the view 20pixels lower after camera, iPhone

Status bar is important and should be there if it’s not a game. We usually use transparent black style (alpha of 0.5) status bar so it could fit in with the design style we make.

But as you might know, using transparent status bar has some problem when you’re bringing in some modal view from outside such as taking a photo or picking one from photo library. When it’s gone, whole view goes 20pixels down which makes the status bar just black thick one.

Here’s the solution of how we can solve such problem.

Continue Reading →

Saving a copy of photo to camera roll on iPhone

When you’re taking photo inside the app, you might want to save a copy to Photo library.
Here’s how.

Continue Reading →