How do I upload images from my site to a UITableView? What is the best way to work? And how can you handle image rendering when reusing table cells?
And how can I transfer the image from the View table to the cell during the didSelect..Row method?
The best way to do it is lazy loading. You should not upload an image that the user is not viewing. Sample code is available at the link below.
Lazy tableImages
, . , , rootview- . : nib
PS: xml,
, ( , -?), 4. . , !
NSOperations ( apple docs ), NSMutableDictionary, URL-, png jpeg ( UIImage) . @synchronize() , .
, , . ( )
-(void)somememorywarning; { @synchronized(gImageCacheDict) { [gImageCacheDict removeAllObjects]; } }
.., didSelect..
Source: https://habr.com/ru/post/1796567/More articles:IPhone Sound Recording - iosЗавершение сеанса Eclipse ADT автоматически завершается - androidМожно ли использовать в качестве разделителя в preg_replace? - phpto pass an object from Java to an Oracle procedure - javaAttempting to update Facebook event using Graph API (Facebook C # SDK) - facebookВызов веб-службы JQuery/ajax переадресовывается (302 объект перемещен), а затем 500 неизвестных имен webservice - javascriptWhy does my “next” property disappear in my JavaScript hash in Firefox 3.6 - javascriptHibernate setup - javaAre test libraries available for Objective-C? - objective-cProgrammatically stop current notification - Android - androidAll Articles