[iphone] Custom Icons in Tab Bars - Not Working

I'm trying to use my own icons on the Tab Bar because the Standard Icons do not fit with what what my menus display.
I've tried saving them as 30x30 black and white .png files, but for some reason the simulator and the device display the icon as a blue square. They will not show the .png.
I've also tried saving it as a .jpg and no dice. Anyone have insight as to why this is?

Here is a procedure that I used to create the tab icons using Photoshop. I am not a photoshop expert in any way so if there may be a shorter approach. The qist is to create a grayscale image with a mask layer, no background and export to png with transparency. After scouring the net for tips and suggestions, I gathered some pointers on twitter and iphone sdk message boards and narrowed down this procedure. So all credit to the original authors! Sorry - I did not keep track of them.
1 You need to create a single layer grayscale image and not worry about how the tab is displayed when it is active (blue background) and gray (inactive). That's handled in the SDK.
Create a grayscale image and save it s jpeg or gif. Delete the background completely
2. Open this image and select all and copy the image to your clipboard. Ensure that you can view the layers/channels/paths window (in Photoshop go to the WINDOW menu and check layers).
3. In the layers/channels window, you will see the layer labeled as "background"
(notice the lock icon on the right extreme)
4. Convert this "background" to a mask layer - double click on the lock icon.
A new layer window will pop up. click ok.
5. select the channels tab, and add an alpha channel by clicking on the small icon on the lower border of the layer/channels window -looks like circle within a rectangle. (it should say "save selection as channel" when you "mouseover" this icon. This message will not be displayed if you have not copied your original image to the clipboard.
6. You should now see two channels listed (Gray and Alpha).
7. Select the Alpha channel and paste from clipboard
8. ensure that both channels are selected for display and Invert the image -- will change colors - reddish tinge
9. Save for web devices, select transparency and png format and save
You can now drag this ping into xcode!
Sundar

Similar Messages

  • Bookmark icon in Bookmark Bar not working

    Safari will not allow me view my bookmarks using the Book icon on the Bookmarks bar. The first time I click on the icon, it opens a Tab with "Bookmarks" on the tab but it just sits there a spins forever. If I click the icon 2 more times, I can see the list of my bookmark Collections, but whenever I click on ANY of the collections, NOTHING shows up on the right side. My Bookmarks' pulldown menu works fine but I have a ton of bookmarks within Collections that I can no longer access.
    I've tried resetting Safari. I've repaired my permissions using Disk Utility.
    Does anyone have any other suggestions?
    If not, would someone please give me a link to redownload Safari 3 for Mac OS 10.4.11 as only Windows users can download a copy off of Apple's website. Apple has removed the Mac version from their website as they say Apple's Software Update should download the latest version. Software Update is telling me that all my software is updated.
    Thank you.
    Christi

    Follow the standard procedures for Mac OS X miracles:
    Applications > Utilities > Disk Utility > select your start up volume > First Aid > Repair Permissions
    Restart the your Mac with the Mac OS X installation CD or DVD (through holding the key C on the keyboard). There select your preferred language and then not install Mac OS X but go to the File menu and select Disk Utility. There select your normal volume > First Aid > Repair disk. Restart your Mac.
    System Preferences > Users and hit the small "+" at the bottom to create a new user. Select Log out from the Apple menu and log in this new user.
    If it worked in the new user, the problem is somewhere in a file in your users Library > Preferences folder.
    If it did not work, check your Apple Bluetooth Software version is at 1.6 and not 1.5.

  • DVR w/ FLVPlayback 2.5.0.15 & Custom Publishing Client - Seek Bar Not Working [updated]

    [ UPDATED to include code and modified language after I discovered that everything works when I use Live Encoder.... ]
    Hello.
    So I've got the DVRCast application installed, and I am successfully streaming live-DVR content to the updated FLVPlayback component.  I'm able to access the DVR-specific metadata (e.g. "currLen") without any trouble, and so forth.
    When I record with the Flash Live Encoder, everything works correctly; the seek bar fills in as more content is published, and the playhead advances slowly across the filled-in section of the seek bar.
    But when I do the publishing with a custom client instead of Flash Live Encoder, the seek bar doesn't work right.  Specifically, when I start viewing a stream which is still being broadcast live, the seek bar shows the length of the stream at the moment I started viewing it; however, the seek bar doesn't update correctly as new content continues to be appended to the end of the stream.  What happens instead is that the "playhead" (not sure of the proper terminology here) moves along the seek bar until it reaches the end, and then it just sits at the end -- and the seek bar itself starts expanding to the right, off the edge of the stage!
    So I assume the problem here is that I need to add some code to the publishing client.  Here's the meat of the publishing code (from MyDVRPublish.as, which is the document class for MyDVRPublish.fla):
            public function MyDVRPublish()
                nc = new NetConnection();
                nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                nc.connect("rtmp://localhost/DVRCast");
                dvrFlag = true;
                isVideoReady = false;
                streamID = null;
                vid = new Video(640, 480);
                vid.x = 0;
                vid.y = 0;
                vidMonitor.addChild(vid);
                cam = Camera.getCamera();
                cam.setQuality(0,90);
                cam.setMode(640, 480, 30);
                vid.attachCamera(cam);
            private function onNetStatus(event:NetStatusEvent):void{
                trace(event.info.code);
                if(event.info.code == "NetConnection.Connect.Success"){
                    doRecording("mystream");
            private function doRecording(sID:String) {
                isRecording = true;
                streamID = sID;
                publishCamera();
            private function stopRecording() {
                ns.close();
                isRecording = false;
                trace("Finished recording " + streamID);
            private function onAsyncError(event:AsyncErrorEvent):void{
                    trace(event.text);
            private function publishCamera() {
                ns = new NetStream(nc);
                ns.client = new CustomClient();
                ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
                ns.attachCamera(cam);
                trace("Publishing Stream...");
                ns.publish(streamID, "record");
    ...What am I missing?
    Thanks,
    -dan
    Message was edited by DanMITRE.

    Hi Dan,
    Unfortunately, I don't know of a tutorial that builds a custom client that publishes to DVRCast, but Graeme Bull created a great video tutorial that should help:
    http://fmsguru.com/showtutorial.cfm?tutorialID=25
    Before Adobe published the DVRCast app, Graeme played around with FMLE3 and figured out what calls it was making to the server and built his own DVRCast app. I know this is the inverse of what you want to do, but watching him reverse engineer FMLE's calls to the server will show you how to make your own publishing client.
    Also, you check out the DVRCast code at rootinstall\applications\dvrcast_origin\scripts to see exactly what the DVRCast app expects the publishing client to call (and what it expects the subscribing client to call).
    Roughly:
    The DVRCast docs have a code example on page 11 that calls DVRSetStreamInfo. After the publisher calls DVRSetStreamInfo with the name of the DVR stream and calls NetStream.publish("streamname", "record"|"append"), the subscribing client calls DVRGetStreamInfo to get the name of the DVRStream. The subscribing client then passes the name of the DVRStream in a call to DVRSubscribe. Finally, the subscribing client calls NetStream.play("streamname", 0, -1) to play the stream.
    I'll get a tutorial up as soon as I can (unless someone beats me to it), but unfortunately I have to hit some deadlines today on other projects.
    HTH,
    Jody

  • Front page opens works shortly freezes. only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally. The restart saved tabs does not work on that first page.

    front page opens works shortly freezes.
    only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally.
    The restart saved tabs does not work on that first page.

    Hi @prdstudio3 ,
    Thank you for visiting the HP Support Forums. The Serial Number needed to be removed from your Post. This is From our Rules of Participation:
    Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
    If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
    Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
    Thank you
    George
    I work for HP

  • I was updating my iphone 4 to ios5 ,but did not work! my phone is frozen with picture of lead,arrow and itunes icon. it now does not connect to itunes for me to restore. PLEASE HELP

    iwas updating my iphone 4 to ios 5,did NOT work.
    now it is frozen with picture of phone lead,arrow and itunes icon.
    phone will not connect to itunes for me to retore.
    PLEASE HELP ANYONE !

    Have you tried putting the phone into recovery mode : http://support.apple.com/kb/HT1808 ?

  • Send icon on touchcsreen mostly not working in facebook messenger unless I turn off iphone 5s on and off again, very annoying having to do it after every message!

    send icon on touchcsreen mostly not working in facebook messenger unless I turn off iphone 5s on and off again, very annoying having to do it after every message!

    YYour annoyed at Facebook right since you're using their messenger app. Ask Facebook or look at their support site.

  • Why is the Time Machine icon in menu bar not spinning when backing up? It stop working when I changed to Maverick.

    Why is the Time Machine icon in menu bar not spinning when backing up? It stop working when I changed to Maverick.

    my imac came with lion and don't think it ever span with lion and mtn lion and now maverick not sure if it's a setting

  • Yahoo music search bar not working with Firefox 5

    Yahoo music search bar not working with Firefox 5.

    go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Zoom -> click "Reset"
    -> go to View Menu -> Page Style -> select "Basic Page Style"
    -> go to View Menu -> Toolbars -> unselect "Yahoo! Music Search Bar"
    -> go Tools Menu -> Clear Recent History -> ''Time range to clear: '''select EVERYTHING''''' -> click Details (small arrow) button -> place Checkmarks on ALL Options -> click "Clear Now"
    -> go to Tools Menu -> Options -> General -> ''When Firefox starts : '''select "Show My Home Page"''''' -> Type the address of the website which you want to be your HomePage e.g. http:www.google.com -> click OK
    -> go to Tools Menu -> Options -> Privacy -> History section -> ''Firefox will: '''select "Use custom settings for history"''''' -> PLACE CHECKMARKS on:
    1) Remember my Browsing History
    2) Remember Download History
    3) Remember Search History
    4) Accept Cookies from sites -> select "Exceptions..." button -> Click "Remove All Sites" at the bottom of "Exception - Cookies" window
    4a) Accept Third-party Cookies -> under "Keep Until" select "They Expire"
    -> REMOVE CHECKMARK from Last Option (CLEAR HISTORY WHEN FIREFOX CLOSES)
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select "Yahoo! Music Search Bar" and other unwanted search engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE "Yahoo! Music Search Bar extension" (add-on) and other Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • Click on obiee dashboard tabs is not working

    Hi,
    One remote user using cisco vpn to access OBIEE dashboards. everything is all right but when he click on dashboard tabs is not working. I tried with firefox 3.6.0 and IE 8 both have same problem. we dont have this problem within the network. I dont think it's a firewall issue because everything else is working fine. we dont have any custom java script in obiee dashboards. Is it a browser problem? does any one else got this problem before?
    Thanks
    Jay.

    Hi Jay
    Yes Its browser issue. Please make sure the patch updates of IE are updated and i do have the same problem with IE 6 when user remotes (or) use citrix
    One more important point is we have made the dashboards available directly instead of residing in group folder. If you have Dashboards under group folder, give access to that Dashboard directly instead of Group folder
    Eg: Groupfolder A contains A1,A2,A3....A10 dashboards. Give acceess to A1,A2 instead of groupfolder A
    Please mark it Helpful or correct if this solved

  • Why does right clinking on link and selecting open in new tab does not work?

    Why does right clinking on link and selecting open in new tab does not work?
    It opens up a blank page. The only way to make the link work is to click on the navigation bar in the new tab and press enter to reload the link.

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    1.You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
    2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • I dropped my iphone 5S in water and its not working.  Any suggestions?

    I dropped my iphone 5S in water and its not working.  Any suggestions?

    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house on iPhone 5 and 5C. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    You will find respective repair costs in the appropriate link:
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task:
    1. iResq or Google for others.
    2. Buy and replace screen yourself: iFixit

  • How can i transfer my calendar from iphone to macbook? Sync is not working!, how can i transfer my calendar from iphone to macbook? Sync is not working!

    how can i transfer my calendar from iphone to macbook? Sync is not working!, how can i transfer my calendar from iphone to macbook? Sync is not working!

    If the calendar is connected to a server account, like Exchange, you cannot sync via iTunes. You need to connect to the server on your MacBook.
    If it is not connected to a server account then you need to ensure syncing is set up in iTunes. This is in the Info tab for your selected phone in iTunes.

  • Iphone 5 is 1 day camera not working shutter frozen.

    My iphone 5 is 1 day camera not working shutter frozen, and i try restore restart but not use. now I took it to my carrier and now I have to wait 14 days to have my phone ,I feel bad about this.

    That is NOT unfreezing it for me. It returns to home page now after about thirty seconds of total freeze (worsened from last night).
    And now some really strange things are adding to it, like when waking and sliding to unlock, the tab is sticking for several seconds to the right before opening home page. Nobody seems to know whether apps are saved in sync for easy load following a restore. (??)
    Edit to add: when I try the hard reset, it simply prompts whether I want to shut down, so I guess yes, it does finally help to exit the frozen shutter, though as I said, it releases after about thirty seconds.
    One more edit: I turned my iphone off and restarted it to find, knock on wood, that the camera's working now. Will see where it goes from here.
    null

  • My iphone 5 "slide to unlock" does not work

    My iphone 5 "slide to unlock" doe not work and has a camera icon beside it. I also tried to shut it off but the "slide to power off" also does not work. Please suggest solutions to correct it.Thanks

    Reset the device by pressing and holding the home and power buttons for 15-20 seconds until te white Apple logo appears 

  • My  iphone 3gs with version 4.0 not works for apple  TV should i need to download  any app or any other thng

    my  iphone 3gs with version 4.0 not works for apple  TV  what should  i do?

    Welcome to the Apple community.
    You should update your iPhone software.

Maybe you are looking for