Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-27-2011, 09:06 PM   #1 (permalink)
Student
 
Join Date: Mar 2011
Location: Canada
Posts: 107
pure is on a distinguished road
Default how would i approach this

in a view i want a custom view and inside the custom view i want it to be transparent meaning if there was a view behind it the user could see it

View a root view has a picture
over the root view there us viewA and over viewA is ViewB however ViewB is filled with what ever is in the picture in root view
pure is offline   Reply With Quote
Old 08-27-2011, 10:28 PM   #2 (permalink)
Rko
Registered Member
 
Join Date: Jun 2010
Posts: 63
Rko is on a distinguished road
Default

have u tried playing around with the alpha values of each view.
Rko is offline   Reply With Quote
Old 08-28-2011, 01:21 AM   #3 (permalink)
Student
 
Join Date: Mar 2011
Location: Canada
Posts: 107
pure is on a distinguished road
Default

Quote:
Originally Posted by Rko View Post
have u tried playing around with the alpha values of each view.
yes i have, the problem is when i set viewb transparent it transparent and you see viewa not root view and i want to see root view
pure is offline   Reply With Quote
Old 08-28-2011, 02:53 AM   #4 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 22
Tinyted is on a distinguished road
Default

You mind explaining it better? Try to explain in detail what you're trying to do. Like in a list of order. Proper sentences help other people understand a lot of times. I would love to help, but I have no idea what you're trying to do.
Tinyted is offline   Reply With Quote
Old 08-28-2011, 09:30 AM   #5 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by pure View Post
yes i have, the problem is when i set viewb transparent it transparent and you see viewa not root view and i want to see root view
You will have to do a couple of things:

Set the opaque property of both view a and view b to FALSE.

Use images with an alpha channel for both view a and view b

Set the portion of view A and view b that you want to transparent. If both view A and view B are the same size and exactly on top of each other, this will be pretty easy. If they are different sizes, or have different origins, you'll have to come up with the math that will let you figure out the coordinates of the areas of both views to make transparent. UIView has a set of methods that let you convert between the coordinate systems of different views. They all start with "convert", and those will let you take a rectangle in the coordinates of the root view and convert it to the coordinates of view A and view b so you can figure out the area of view a and b that you want to make transparent.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 08-28-2011, 08:48 PM   #6 (permalink)
Student
 
Join Date: Mar 2011
Location: Canada
Posts: 107
pure is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
You will have to do a couple of things:

Set the opaque property of both view a and view b to FALSE.

Use images with an alpha channel for both view a and view b

Set the portion of view A and view b that you want to transparent. If both view A and view B are the same size and exactly on top of each other, this will be pretty easy. If they are different sizes, or have different origins, you'll have to come up with the math that will let you figure out the coordinates of the areas of both views to make transparent. UIView has a set of methods that let you convert between the coordinate systems of different views. They all start with "convert", and those will let you take a rectangle in the coordinates of the root view and convert it to the coordinates of view A and view b so you can figure out the area of view a and b that you want to make transparent.
I dont understand the third part i set opaque to false and i checked if the images have an alpha channel but the next step i dont quite understand
pure is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 396
13 members and 383 guests
7twenty7, chiataytuday, cristofercolmbos, fiftysixty, gmarro, iOS.Lover, kilobytedump, Matrix23, raymng, ryantcb, stanny, UMAD, xerohuang
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,669
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, dedeys78
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0