How to create a receipt-like paper background in Objective-C
I am creating an iPhone app that I feel needs to have a receipt background on the landing tab. Mint has this on their mobile app for both Android and iOS. I can't for the life of me think of how I would do this without drawing and duplicating a bunch of triangles on the bottom of a white container.
The attached image should show you what I'm aiming to do.
EDIT: It appears I can't attach an im开发者_如何学Pythonage. Go here - http://dl.dropbox.com/u/189423/photo.PNG
UPDATE: I have decided to use an image - Now, how would I go about using a custom image for the top, tiling along the y-axis for the content area, and then another on the bottom? As far as I can tell, a UIView only allows for one background image. Any help?
You need to have images for:
- Top cell of the tableView
- Middle cells
- Bottom cell of the tableview
and set them as backgroundView for each cell.
If your tableView doesnt grow then you can have single image set as tableView backgorund
Use a background UIImage, with bounds set for tiling. The triangles at the bottom are likely just using the image alpha channel.
精彩评论