Discussion Forums  >  Uncategorized

Replies: 3    Views: 239

i4HimProductions
Aspiring developer
Profile
Posts: 65
Reg: Jan 21, 2011
location unknow...
650
06/09/11 09:52 AM (14 years ago)

Logo In Header

Hi, I was wondering if it's possible to add a logo as the header of my app instead of just the name.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/09/11 11:03 AM (14 years ago)
I'm guessing you mean in the top navigation bar. You can but it takes some skill. Look at the BT_viewUtilities.m file in the BT_Layout folder (assuming buzztouch v1.5) and look for the configureBackgroundAndNavBar method starting on line 215. This is where the text is setup in the navigation bar. To add an image you'll end up hacking around a bit to create your own UIView, that includes a UIImage. Then, you'll apply the UIView as the 'title view' for the nav bar. Google UIImage in UINavigation bar for syntax, tips, help. It'll be a workout for you unless your skilled but it can be done.
 
i4HimProductions
Aspiring developer
Profile
Posts: 65
Reg: Jan 21, 2011
location unknow...
650
like
06/09/11 03:37 PM (14 years ago)
Okay thanks
 
i4HimProductions
Aspiring developer
Profile
Posts: 65
Reg: Jan 21, 2011
location unknow...
650
like
06/09/11 06:52 PM (14 years ago)
I think this will work: // Create your image UIImage *image = [UIImage imageNamed: @yourimage.png]; UIImageView *imageview = [[UIImageView alloc] initWithImage: image]; // set the text view to the image view self.navigationItem.textView = imageView;
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.