Results 1 to 2 of 2

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: image size to completely take the navigationItem.titleView

  1. #1
    Default image size to completely take the navigationItem.titleView
    Hello all,

    I seem to be having some problems with getting my image to completely cover the navigationbar( navigationItem.titleview).

    I already tried some things. I just want to have my image completely over the navigationItem.TitleView;

    I tried to make a CGRect and initialize my UIImage in it but to no avail.

    i figured this would work but unfortunately to no avail.

    Code:
    [self.navigationItem.titleView sizeToFit];
    
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"test.png"]];
    The funny thing is when I press a row, I can see it resize for a bit to the correct size and in the next tableview it's back to it's old self.

    What is happening?

  2. #2
    Default Image to completely fit titleview of Navigation Item
    Quote Originally Posted by ulquiorra View Post
    Hello all,

    I seem to be having some problems with getting my image to completely cover the navigationbar( navigationItem.titleview).

    I already tried some things. I just want to have my image completely over the navigationItem.TitleView;

    I tried to make a CGRect and initialize my UIImage in it but to no avail.

    i figured this would work but unfortunately to no avail.

    Code:
    [self.navigationItem.titleView sizeToFit];
    
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"test.png"]];
    The funny thing is when I press a row, I can see it resize for a bit to the correct size and in the next tableview it's back to it's old self.

    What is happening?
    Have u got the solution for the problem.Please help.

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •