Drawing outside bounds

Discussion in 'iOS Programming' started by MrA, Oct 7, 2008.

  1. MrA macrumors newbie

    Jul 13, 2008
    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?
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    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.
  3. MrA thread starter macrumors newbie

    Jul 13, 2008
    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.

Share This Page