Saturday, February 26, 2011

Prepare Username and Password for App Store Review

Our application Chatpoints (iPhone version available here) has free "guest" account as well as free registration. Choose a username and password and you can login immediately.

Sounds easy, right? Not easy enough, as App Store rejection email told:

Monday, February 21, 2011

How to Find MFMailComposeViewController Email Addresses

One of the missing iOS APIs is a way to find out whom did user send email to. Otherwise MFMailComposeViewController is excellent: easy to setup, easy to launch, easy to use and easy to close. You just have no idea what user was doing with it!

I really needed to know who were email recipients. There are several good reasons for this and I just had one of those. So it was time to do some experimenting!

Monday, February 14, 2011

UISearchDisplayController with No Results

Don't know what it is, but I just can't make UISearchDisplayDelegate shouldReloadTableForSearchString method work the way I read the documentation:
You might implement this method if you want to perform an asynchronous search. You would initiate the search in this method, then return NO. You would reload the table when you have results.

Monday, February 7, 2011

UITableView with Custom Cell Height

I'm writing an application, where startup view contains UITableView - which seemed pretty slow. Basic version is not too bad, but when using a custom UITableViewCell created from XIB, it became totally unusable.

Time to debug whether Interface Builder's XIB makes things slow!

Wednesday, February 2, 2011

Can't Start Debugger. CFSocketSetAddress Returns Error -1

Was debugging an application in real device, when suddenly got an error note about failed network connection. Since this happened before application launch, I got curious.

Why would debugging application in device fail due network error before launch? Why would it fail now, when everything was ok dozens of times just beforehands (yes, I do a lot of quick but short debugging sessions in real device)?

Tuesday, February 1, 2011

Stray '/302' in program

Much of writing code is pretty automated, I don't usually even consciously recognize what I do.

Too busy thinking about the problem, possible solution(s) and side-effects. Build or Build-and-Analyze is a good way to take a few seconds to think about what's next on the list - and then it happens. Compiler error!