I’ve seen some iPhone applications that use a custom image as the background for a grouped UITableView, instead of the standard gray lines.
How is this achieved?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In another project (developed using 2.2.1) I did this by setting my
UITableView's background opacity to 0%, and then simply layering aUIImageViewbehind it using Interface Builder. This allowed me to have a fixed background regardless of the table state. You can also set the background of theUITableViewto be an image instead, but then the background scrolls with the table. (I don’t have the code handy at the moment, but I got the tip a while back on the Apple developer forums).Note that this can cause some performance issues. Apple discourages using transparency whenever possible because the GPUs on the pre-3GS models aren’t particularly beefy.