Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 26

syedasad2001
Aspiring developer
Profile
Posts: 38
Reg: May 12, 2014
Karachi
380
06/25/14 12:21 PM (10 years ago)

png image in tabs showing as blackbox

I have a tabbed layout in my app. The icon is a png image with a transparent background but it is being shown as a black box in the iOS simulator in X Code. Any suggestions about how to overcome this? Thanks.
 
KozmoWeb
Aspiring developer
Profile
Posts: 342
Reg: Dec 08, 2012
Sarasota, FL
8,520
like
06/25/14 06:08 PM (10 years ago)
Hi @syedasad2001, What dimensions are your images? I used 24px by 24px png files for my tab icons and that is what works best for me. I had problems with larger sizes. -William
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
06/25/14 08:27 PM (10 years ago)
Be sure to have the name.png and [email protected] files in there. Accordingly, I use 25px and 50px sizes. -- Niraj
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
06/25/14 08:28 PM (10 years ago)
Also, be sure to put your image files into the bt_images group folder within Xcode. Enable the checkbox for copy when dragging into Xcode. - Niraj
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
06/25/14 08:29 PM (10 years ago)
Also, use the images from http://icons8.com as a test. That will verify your file types. -- Niraj
 
syedasad2001
Aspiring developer
Profile
Posts: 38
Reg: May 12, 2014
Karachi
380
like
06/27/14 10:46 AM (10 years ago)
Thanks so much.
 

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.