I'm new on Cocoa OBJC and iPhone dev. Where to find the default background that apple uses everywhere (like the one on the iphone's default setting app) ? It's possible to set the image from interface builder or you have to set by line code? Thanks
+1
A:
That's just the default background of a UITableView
. If you make a UITableView
, you'll get the background.
Carl Norum
2010-06-24 18:23:06
ok, the default one didn't but with grouped selected is ok.Thanks
Kreker
2010-06-24 18:49:52
+1
A:
To expand on Carl's answer: if you create a UITableView
in the grouped style, either via Interface Builder or using the -initWithFrame:style:
method with UITableViewStyleGrouped
, you'll get that background by default. If you'd like to apply it to another view, you can set that view's backgroundColor
to [UIColor groupTableViewBackgroundColor]
.
Noah Witherspoon
2010-06-24 18:26:15
do you mean that I can use this background in any uiview and not just uitableview?
Kreker
2010-06-24 18:50:31
ok you did mean that!:)Now I have a UiTableView with example data on interface builder and nothing to simulator, i think is good, but not too much "pro" using a uitableview either than a normal uiview. So where I have to apply your code?
Kreker
2010-06-24 19:03:24
and for the second question, where to find a good site resource for png and candy for iphone app dev?
Kreker
2010-06-24 19:04:18
i really don't understand how to change the uiview background with the uitableview's one but I where. Changes if add the uiview from the interfacebuilder and not by initialing it source code?!thanks for help
Kreker
2010-06-27 19:56:03