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 *toread *wishlist 2d 360 3d 3g abandonware accounting actionscript air airplay algorithm android animation api app apple appstore arcade arduino art article asm assembler audio automation baby backlight backup bbs berlin bitcoin bivert blipfm blipster blog blu-ray bluetooth book bookmark bootcamp boxee brasil brazil bruno bug bugtracking buildapc business c c# c++ carro casa cell chart chiptune cliq cocoa cocoa-touch code collection component controller cooking core-graphics crt css curso database ddwrt debug demoscene design deutschland dev developer development diy dj dns doc dos dosbox dotnet download dreamcast drink drm ds dvb-c dvd ebook electronics emu emudev emulator engine example facebook famicom feedbin firmware fix flash flashcart flex fluorine forum framework freeware gadget game gameboy gameboy-pocket gamedesign gamedev gamegear games gba genesis german germany git google googlemaps GoogleReader gps gsm gui guide hack hacks hamburg hardware home home-automation homeassistant homebrew honda howto html htpc http icon IFTTT ikea image imported indie inspiration install insteon interview ios ipad iphone iptv iso itunes jailbreak japan java javascript job keyboard lastfm lcd lib library linux live lldb localization london mac macos mame management mapkit mastersystem math mce media mediacenter megadrive memory-management miami midi mod movie mp3 mpd msn music mythtv nas nes network nvidia nyc objective-c opengl opengles opensource osx pc pcb perlerbeads php physics piracy plex plugin Pocket portfolio prepaid project ps1 ps2 ps3 ps4 psp puremvc push pvr python raspberrypi recalbox recipe region remote repro resource restaurante retrogaming retrograming retropc retropie rgb rip rom roms router ruby rubyonrails saopaulo scart scumm sdk security seedbox serial server shmups shop shopping sim sms snes software sonos sound soundblaster soundtrack source spotify sql sqlite star startup steamdeck store stream subtitles svn swift sync synology synth tax terminal three20 tips tool tools toread torrent tracker travel trip tutorial tweak twitter ubuntu ui uitableview unix unlock uremote usa veralite viagem video vista vita vpn vps vst walkthrough warez web2.0 webdesign webradio webservices wifi wii wiiu windows wishlist wordpress xbmc xbox xcode xml xna youtube z-wave z80 zigbee