younotesunreadstarredadd url

Increase the responsiveness of your UITableViews | NSCoriolisBlog

http://blog.coriolis.ch/2009/05/04/increase-the-responsiveness-of-your-uitableviews/

july 2009cocoa-touch tips uitableviewopen in karakeep

by Stephan Burlot ‧ DZ-015 ‧ published 2009.05.04 ‧ saved copy from 2026.03.03

Karakeep has no AI summary for this page yet. summarize now

page description:

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…
screenshot of the page

« back to bookmarks

top tags     all tags251020manage

*bookmark *download *tobuy *tofollow 2d 360 3d 3g abandonware actionscript air airplay algorithm android animation api app apple appstore arcade arduino art article asm audio automation backlight backup berlin bitcoin blipfm blipster blog bluetooth book bookmark bootcamp brasil brazil bug buildapc business c c# c++ carro casa chiptune cliq cocoa cocoa-touch code collection component controller cooking crt css database debug demoscene design deutschland dev diy dns doc dos dosbox dotnet download electronics emu emudev emulator engine example famicom feedbin fix flash flex fluorine forum framework freeware gadget game gameboy gameboy-pocket gamedev games germany git google googlemaps GoogleReader gsm guide hack hacks hamburg hardware home home-automation homeassistant homebrew honda howto html htpc http IFTTT image imported indie inspiration insteon ios ipad iphone iso itunes jailbreak japan java javascript job lcd lib library linux live localization mac mame math mce media mediacenter megadrive memory-management midi mod movie mp3 mpd music mythtv nas nes network objective-c opengl opensource osx pc pcb piracy plex plugin Pocket project ps1 ps2 ps3 ps4 pvr python raspberrypi recalbox recipe region remote repro resource restaurante retrogaming retrograming retropc retropie rgb roms rubyonrails saopaulo scart scumm sdk security seedbox server shmups shop shopping sim sms snes software sound soundblaster source spotify sqlite star svn swift sync synology synth tax terminal three20 tips tool toread torrent tracker travel tutorial twitter ubuntu ui uitableview unix unlock usa veralite viagem video vista vpn vps walkthrough warez web2.0 webservices wifi wii wiiu windows wishlist wordpress xbmc xbox xcode xml xna youtube z-wave z80