Flicker Images

Find programmers and grapic design experts at ScriptLance.com
Showing posts with label IOS App. Show all posts
Showing posts with label IOS App. Show all posts

Friday, September 11, 2015

iPhone UITextField - Change placeholder text color



We can Change the Placeholder textcolor to any color which you want by using the below code.


    UIColor *color = [UIColor whiteColor];
  
    self.txtUserName.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"Username" attributes:@{NSForegroundColorAttributeName: color}];
Share:

Tuesday, June 16, 2015

How to make completely transparent navigation bar in iOS 7 + iOS 8 programticaly

I found the solution from Stack Overflow and other site .



Solution 01
Objective c
self.navigationController.navigationBar setBackgroundImage:[UIImage new]
                     forBarMetrics:UIBarMetricsDefault];
self.navigationController.navigationBar.shadowImage = [UIImage new];
self.navigationController.navigationBar.translucent = YES;
self.navigationController.view.backgroundColor = [UIColor clearColor];
self.navigationController.navigationBar.backgroundColor = [UIColor clearColor];


swift 

self.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default)
self.navigationBar.shadowImage = UIImage()
self.navigationBar.translucent = true


Learn about More UINavigationBar

Share:

Game Reviews

BTemplates.com

Powered by Blogger.

Search This Blog

Video Of Day

Find Us OIn Facebook

Blogroll

Contact

Tackle the Web with up to 5 new .COMs, $5.99 for the 1st year!

Advertisement