On iPhone 4G
this.element.style.webkitTransform = translate(...) is very slow.
You should use
this.element.style.webkitTransform = translate3d(...)
2010年8月29日
2010年8月9日
NSData dataWithContentsOfURL has memory leak problem
NSData dataWithContentsOfURL has memory leak problem.
Should use it like below.
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// ** Your Operations **
NSData *data = [NSData dataWithContentsOfURL:someURL];
// ** Your Operation **
[pool release];
Should use it like below.
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// ** Your Operations **
NSData *data = [NSData dataWithContentsOfURL:someURL];
// ** Your Operation **
[pool release];
订阅:
博文 (Atom)