PDA

View Full Version : Adding an image to View Switcher app




waffles123
May 4, 2009, 11:24 AM
Hi, I'm modifying the View Switcher app in this book (http://www.amazon.com/gp/product/1430216263/ref=s9_cart_gw_t1?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=center-2&pf_rd_r=0SDQM27W1CPGY7M89BNR&pf_rd_t=101&pf_rd_p=470938631&pf_rd_i=507846), and I want to add a custom image to view #1, aka the BlueView, and a custom image to view #2, aka the YellowView. When I try to add them in Interface Builder, and run them in the iPhone Simulator, it recognizes the first image in view #1, but it stays the same Yellow background in view #2. What am I doing wrong?



dejo
May 4, 2009, 12:14 PM
How are you adding the custom image to view #2?

waffles123
May 4, 2009, 12:39 PM
The same way as view #1. I'm going to go create a video to show you.

dejo
May 4, 2009, 12:40 PM
The same way as view #1. I'm going to go create a video to show you.
Why not explain it in text here?

waffles123
May 4, 2009, 04:15 PM
It seems like it won't work if I first set the mode to "Aspect Fill." But if I first to it to "Center", and THEN to "Aspect Fill" it will work. Weird :confused: