开发者

How to create a receipt-like paper background in Objective-C

开发者 https://www.devze.com 2023-03-27 13:22 出处:网络
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 wo

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:

  1. Top cell of the tableView
  2. Middle cells
  3. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号