rock’n roll

December 25, 2008

gNotes

Filed under: iPhone, software — dinhviethoa @ 2:52 pm

Forget all notes applications! Here comes gNotes

Powered by Google, coded by Hoà at Visuamobile, gNotes is the perfect companion to take notes and sync them easily on the go.

Syncing notes has never been that easy. All you need is a gMail account and you’re done.
You can seamlessly sync notes between your computer (Mac or PC) by using the Google Notebook Web application and your iPhone or iPod Touch without doing any complicated manipulations on the iPhone.

Features:
- Create, edit, delete, re-order notes easily
- Organize notes into folders
- Two way fast syncing between your iPhone and your laptop/desktop (PC or Mac : http://www.google.com/notebook) without any extra software
- Secured note solution: Powered by Google, no privacy issue

A shopping list, one of your brilliant ideas or a classic to do list, from your computer or your iPhone, gNotes takes good care of it and makes sure that your notes are available wherever and whenever you are.

screenshot51 screenshot2-note-detail

You can get it from the iTunes AppStore.

December 16, 2008

UITableView bugs

Filed under: iPhone, software — dinhviethoa @ 1:30 am

1. new company

I’m now at visuamobile.
I’m working on software for iPhone.

2. a word on dequeueReusableCellWithIdentifier:

Did you thought – [UITableView dequeueReusableCellWithIdentifier:] was only for performance issue ?
In fact, this is mandatory when you have to call reloadData at any time.
It has some bug in the following case :
- highlight the cell by touching the cell
- reloadData on the UITableView
- then, touch up to select the cell
The UITableView will try to use the highlighted cell instance (which may have been dealloc’ed) when you touch up instead of using the new created cell.
So that this will crash.

It looks that the workaround is to use the following method of UITableView :
- (UITableViewCell *)dequeueReusableCellWithIdentifier:(NSString *)identifier

3. edit mode and reloadData

Don’t try to call – reloadData on UITableView while it is in edit mode.
This will have a buggy behavior, especially when you call reloadData while the user is touching-dragging the rows to move them.
The workaround is to call reloadData when you are back from edit mode.

4. disable move of rows

– (NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath
if you try to return sourceIndexPath as result, this will have a bad behavior. You tableview will be broken. The dragged cell at the end of drag will be at a strange position in the tableview.

Blog at WordPress.com.