Increase the responsiveness of your UITableViews | NSCoriolisBlog
http://blog.coriolis.ch/2009/05/04/increase-the-responsiveness-of-your-uitableviews/
july 2009 ‧ cocoa-touch tips uitableview ‧ open in karakeep
Karakeep has no AI summary for this page yet. summarize now
Let’s say you have an UITableView in which rows, when touched, changes the display to another view with an animation. If you touch quickly a row, the row will highlight just before the animation starts. If the action performed when touching the row takes some time (let’s say more than 0.5 seconds), after having touched the row, nothing will be visible while your code is running then the row will highlight and the animation will happen. To make the row highlight immediately, so the user has a immediate feedback on its action, do this: Change the name of your method – (void)tableView:(UITableView *)_tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath to – (void) didSelectRowAtIndexPath:(NSIndexPath *)indexPath And add this method to your view controller: - (void)tableView:(UITableView *)_tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [self performSelector:@selector(didSelectRowAtIndexPath:) withObject:indexPath afterDelay:0.1f]; } The feedback when touching a row is immediate and will greatly improve the subjective responsiveness of your application (IMHO). (via the ... Lire la suite…
*bookmark *download *tobuy *tofollow 2d 360 3d abandonware actionscript air algorithm android api app apple appstore arcade arduino art article asm audio automation backlight backup berlin bitcoin blipfm blipster blog bluetooth book bookmark bootcamp brasil bug c c# c++ carro casa chiptune cocoa cocoa-touch code collection component controller css database debug demoscene design deutschland dev diy doc dos dosbox dotnet download electronics emu emudev emulator example famicom feedbin fix flash flex forum freeware gadget game gameboy gamedev germany git GoogleReader hack hacks hardware home home-automation homebrew howto htpc http IFTTT image imported inspiration ios ipad iphone iso itunes jailbreak japan java javascript lcd lib library linux mac mame math mce mediacenter megadrive midi mod mp3 mpd music mythtv nas nes objective-c opengl opensource osx pc piracy plex plugin Pocket ps2 ps3 pvr raspberrypi recipe remote repro resource retrogaming retropc rgb roms rubyonrails saopaulo sdk shmups shop shopping sms snes software soundblaster source star svn swift synology synth terminal tips tool toread torrent travel tutorial twitter ubuntu ui uitableview unix unlock veralite viagem vista vpn vps walkthrough warez web2.0 webservices wii windows wishlist wordpress xbmc xbox xcode xna z80