|
|
#1 |
|
Why my grouped style Table View without round corner?
I made a table view in nib file and set style to grouped, then I put a TableViewCell into table view, but when I run it, I found it is no round corner in grouped table view?
How can I show round corner?
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
|
|
|
0
|
|
|
#2 |
|
I'd look into how your background is set for your table view cell.
__________________
|
|
|
|
0
|
|
|
#3 |
|
Here is my table view cell attributes.
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
|
|
|
0
|
|
|
#4 |
|
Great. Is there any reason you can think of, related to the background, that would cause the rounded corners to be overlapped?
__________________
|
|
|
|
0
|
|
|
#5 |
|
I am not sure what I have to do, can you tell me?
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
|
|
|
0
|
|
|
#6 |
|
Think about how the layers (subviews) that make up the cell are drawn. Think about how the background colors affect that layering. It may take some creativity and pondering before you come up with the reason.
__________________
|
|
|
|
0
|
|
|
#7 | |
|
Quote:
I also set background color to white, but I got the same result. If you don"t want to tell me result, that is ok! I just use it at the moment, I will do it in programming when I really need it...
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 Last edited by mikezang; Oct 1, 2010 at 11:08 AM. |
||
|
|
0
|
|
|
#8 | ||
|
Quote:
Quote:
I'm trying to encourage you to think independently rather than posting a new thread as soon as you encounter a new issue. If you did in code the same thing you're doing in IB, you will get the same problem. It's not just the use of IB that is the issue.
__________________
|
|||
|
|
0
|
|
|
#9 |
|
Thanks for your reply.
You know when I found problems, I think about it by myself, then I will google Internet if I couldn"t get any correct result. After that if I still have no answer, I post thread here. I spent several hours for this issue before I post Like you said, it is best and easy to remember if people can get result by one"s self, but if he had no skills or experience, he has no way to get right result, in this case, a detail tip or hint will let him to get answer.
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
|
|
|
0
|
|
|
#10 |
|
Well, I got what I need in programming as below.
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
|
|
|
0
|
|
|
#11 | ||
|
Quote:
Quote:
But let me try again. There are two things you can try:
__________________
|
|||
|
|
0
|
|
|
#12 | |
|
Quote:
But in programming, it is very simple, I don't need to care about size and I got what I need, though I still hope I can do the same in IB.
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
||
|
|
0
|
|
|
#13 |
|
What did you do in the programming? Can I see the code? That might help me to explain how you can achieve the same thing via IB.
__________________
|
|
|
|
0
|
|
|
#14 | |
|
Quote:
Code:
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:BrokerCellIdentifier] autorelease];
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 150, 25)];
UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(200, 12, 200, 25)];
}
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
||
|
|
0
|
|
|
#15 |
|
All you're doing is setting the UI elements' frames. This is easily done in IB using the Size Inspector, as seen below:
__________________
|
|
|
|
0
|
|
|
#16 |
|
That is done in IB, but the result is not the same as in programming, this is why I asked here.
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
|
|
|
0
|
|
|
#17 | |
|
Quote:
P.S. What is the difference you see?
__________________
|
||
|
|
0
|
|
|
#18 | |
|
Quote:
The difference is with or without round corner. I think the different is as below, this due to different result: IB is to subclass UITableViewCell, and programming is to add Label/TextField to UITableViewCell.
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
||
|
|
0
|
|
|
#19 |
|
Hi
Now I got what I need in IB, like you said that is cell"s contentView background, I set it to clear color.
__________________
iPad Mini 32GB, iPhone 4S 16GB, iPad1 32GB, Mac mini 2.53GHz 4GB 320GB, ThinkPad T60 MyApp: Market Event v1.9.2 |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Conditionally display views on button press | johnmerlino | Mac Programming | 4 | Nov 13, 2011 09:11 AM |
| some help on Editable Detail views | kingthong | iPhone/iPad Programming | 8 | Mar 21, 2011 04:56 AM |
| how to make tableViewController's table grouped style | Howiieque | iPhone/iPad Programming | 8 | Aug 3, 2010 11:08 PM |
| Rounded corners of grouped - style UITableView | nacho4d | iPhone/iPad Programming | 0 | Oct 26, 2008 12:36 PM |
| Rounded Table View Border in Stocks App | louden | iPhone/iPad Programming | 0 | Jul 31, 2008 12:18 AM |
All times are GMT -5. The time now is 11:11 AM.






I support the 
Linear Mode

