Doing Gradients from Left to Right
This is how I managed to create a gradient from left to right:
CAGradientLayer *gradient = [CAGradientLayer layer];
gradient.frame = view.bounds;
gradient.startPoint = CGPointZero;
gradient.endPoint = CGPointMake(1, 0);
gradient.colors = @[(id)[UIColor blackColor].CGColor, (id)[UIColor whiteColor].CGColor];
[view.layer insertSublayer:gradient atIndex:0];
Using Copy Instead of Strong in NSString Properties
Take a look at this to know the difference and importance of using copy instead of strong on NSString properties
Sharing Data Between View Controllers Using Singleton
This is how I managed to share data between my views on a tab bar controller.
Setting Light Content Status Bar in UINavigationController
This is how I set my status bar color in one of my projects that has a UINavigationController. Tyson’s answer made it work for me.
Using Reachability Manager to Handle Network Activity
This is the reachability manager that I used to handle network activity in one of the projects I’m working on.
Animating UITableViewCell like Google Plus
Saw this post on how to mimic the animation effect that Google Plus did on their app. See the answer by Vivek Rajanna:
Detecting Which UIButton is Tapped in UITableView
I used the accepted answer in this post to detect the button that was tapped inside a UITableView
Fade Array of Images
This is one of the methods on how to fade an image:
Remove UINavigationBar Color or Image When Presenting Mail Composer in iOS 7
This is how I removed my navigation bar image when presenting the mail composer. The answer by SoftDesigner worked for me.
Add Login Credentials When Loading UIWebView
In one of my projects, I needed to open a UIWebView that needs a login credentials to open or function properly. This is how I did it. The accepted answer is the one that made it work: