Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
I start with window application, and I want to set a nav bar on my login page . I added one nav bar. But when I add a title, the UILabel has white background, how can I make it transparent ? or any other mehod to set title
I start with window application, and I want to set a nav bar on my login page . I added one nav bar. But when I add a title, the UILabel has white background, how can I make it transparent ? or any other mehod to set title
For a navbar there is a navigationItem that has a title. This title is a simple NSString and is displayed correctly. Setting your own view as you did it is a more special case than setting a title. Please read the documentation!!!
For a navbar there is a navigationItem that has a title. This title is a simple NSString and is displayed correctly. Setting your own view as you did it is a more special case than setting a title. Please read the documentation!!!
hi, I didn't get you.. let me know how can I do it?
/*I am doing that code in AppDelegate class, and creating my own UINavigationBar.*/
For a navbar there is a navigationItem that has a title. This title is a simple NSString and is displayed correctly. Setting your own view as you did it is a more special case than setting a title. Please read the documentation!!!
Is there a way to keep the text from overlapping the buttons if it's really long? Like a sizetofit action that UILabels have?
Replies
Hello David,
set label's backgroundColor property to clearColor
lblTitle.backgroundColor = [UIColor clearColor];
Thanks,
Raju
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomethank you very much
The Lord's holy name be praised.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome/*I am doing that code in AppDelegate class, and creating my own UINavigationBar.*/
The Lord's holy name be praised.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomenavItem = [UINavigationItem alloc];
navItem.titleView = lblTitle;
[navBar pushNavigationItem:navItem animated:false];
[navBar setDelegate:self];
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomethanks silviu...
thanks to all...
The Lord's holy name be praised.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeHave a look at the documentation about UINavigationController and how to use it. Do you use Interface Builder?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeActually I am changing the color of the navigation bar like this.
[self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];
Here rightbarbuttonitem color also changing to white.I want it to be in black.
Thanks,
Narendar
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome