Cache images iOS
  [ Ignoră ]
Avatar
RankRankRankRank
Sr. Member
Din: Bucuresti
Macuser din: 22.09.06

Daca are cineva nevoie sa faca cache pt. imagini am facut libraria asta: https://github.com/lucianboboc/LBCache

 Semnătură 

A man should look for what is, and not for what he thinks should be.—Albert Einstein

Profil
 
  [ Ignoră ]   [ # 1 ]
RankRank
Jr. Member
Din: Bucuresti
Macuser din: 26.03.10

+ (UIImage *)imageNamed:(NSString *)name
Parameters
name
The name of the file. If this is the first time the image is being loaded, the method looks for an image with the specified name in the application’s main bundle.
Return Value
The image object for the specified file, or nil if the method could not find the specified image.

Discussion
This method looks in the system caches for an image object with the specified name and returns that object if it exists. If a matching image object is not already in the cache, this method loads the image data from the specified file, caches it, and then returns the resulting object.

 Semnătură 

 iPhone 5 16GB black, iOS 7 beta 5
 MacBook Pro 15” Unibody, Late 2011 2,4 Ghz Intel Core i7, 8GB RAM, 128GB SSD, Radeon 6770 1GB, HiRes Display, OS X 10.8.3
 Thunderbolt Display

Profil
 
  [ Ignoră ]   [ # 2 ]
Avatar
RankRankRankRank
Sr. Member
Din: Bucuresti
Macuser din: 22.09.06

smile)))

 Semnătură 

A man should look for what is, and not for what he thinks should be.—Albert Einstein

Profil
 
  [ Ignoră ]   [ # 3 ]
Avatar
RankRankRankRank
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06

libraria lui cacheuieste si imagini externe. As fi preferat totusi ceva care are un singur fisier.

 Semnătură 

Mcintoshing…

Profil
 
  [ Ignoră ]   [ # 4 ]
Avatar
RankRankRank
Member
Din: Ploiesti
Macuser din: 06.12.11

vezi aici , poate iti este de folos

 Semnătură 


MacBook Pro 15”  i7 2.2GHz/ 16GB/ 500GB SSD ,  10.11
MacBook Air 13”  i5 1.3GHz/ 4GB/ 256GB SSD ,  10.11

Profil
 
  [ Ignoră ]   [ # 5 ]
Avatar
RankRankRankRank
Sr. Member
Din: Bucuresti
Macuser din: 22.09.06
.ral:cr - 15 Aprilie 2013 04:26 PM

libraria lui cacheuieste si imagini externe. As fi preferat totusi ceva care are un singur fisier.


Banuiesc ca se poate face si asta, nu folosind Core Data, dar nu inteleg ideea, de ce 1 sngur fisier?

 Semnătură 

A man should look for what is, and not for what he thinks should be.—Albert Einstein

Profil
 
  [ Ignoră ]   [ # 6 ]
Avatar
RankRankRankRank
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06

E mai mult psihologic, daca am nevoie rapid de o librarie externa ma simt mai bine sa stiu ca nu-mi polueaza proiectul cu fisiere.

 Semnătură 

Mcintoshing…

Profil
 
  [ Ignoră ]   [ # 7 ]
Avatar
RankRankRankRank
Sr. Member
Din: Bucuresti
Macuser din: 22.09.06

Atata timp ca nu exista erori, warning-uri si performatene sunt bune nu ma deranjaza ca sunt mai multe fisiere, cu core data cel putin era imposibil asta smile

 Semnătură 

A man should look for what is, and not for what he thinks should be.—Albert Einstein

Profil