iOS Development tips

  1.   25-ios-app-performance-tips-tricks

http://www.raywenderlich.com/31166/25-ios-app-performance-tips-tricks

2.  how to use instruments in Xcode

http://www.raywenderlich.com/23037/how-to-use-instruments-in-xcode

 

3. AFNetworking + UIButton

//                    [_nextAction setImage:[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:postCoverImgURL]]]
//                                 forState:UIControlStateNormal];
//                    [_nextAction.imageView setImageWithURL:[NSURL URLWithString:postCoverImgURL]];
//                    [_nextAction setImageForState:UIControlStateNormal withURL:[NSURL URLWithString:postCoverImgURL] placeholderImage: nil];
                    [_nextAction setBackgroundImageForState:UIControlStateNormal withURL:[NSURL URLWithString:postCoverImgURL] placeholderImage:nil];
1st is sync way, very slow
3rd works well for iPhone 4/5, but iPhone 6/7 Plus
4th works perfect, fix bug to show next button image (square in iPhone 6 plus with setImage), change the code to use setBackgroundImage instead of setImage that will give you what you want.

4. TGCamera album missing issue

Advertisements

About liyao13

Yao Li is a web and iOS developer, blogger and he has a passion for technology and business. In his blogs, he shares code snippets, tutorials, resources and notes to help people develop their skills. Donate $5 to him for a coffee with PayPal at About Me page and read more professional and interesting technical blog articles. Follow him @Yaoli0615 at Twitter to get latest tech updates.
This entry was posted in CS Research&Application, iOS and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s