Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MrA

macrumors newbie
Original poster
Jul 13, 2008
9
0
I have a UIView and I want to draw outside it's bounds. How would I do this? I've tried drawing using co-ordinates outside the view's bounds, but it gets clipped as expected. How do I get around this?
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
Why do you want to draw outside a views's bounds? Can you just make it bigger? Use a container view that is bigger and draws the extra content or just use another view.

I have a tablecell where I have a couple labels and need a vertical line in between them. I wrote a simple UIView subclass that just draws this line and I put one of them in each cell.
 

MrA

macrumors newbie
Original poster
Jul 13, 2008
9
0
Making my view bigger is what I'm doing right now, but it seems kinda hackish. I'm implementing a custom keypad, and I want popups in certain cases. The top row of keys would have a popup that goes out of bounds.

Right now, I have a view that's big enough for everything with a top section that's transparent and have it overlap other controls.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.