Up vote 1 down vote favorite 1 share g+ share fb share tw.
I was trying to place two uibuttons on uitableviewcell programmatically.. but unable to achieve that>. Somehow I managed to get the buttons through some sample project in which you can draw a nib for cell.. but I was unable to set a selector function for buttons.. in other example I can place a uiinfodark type button but when I change the type to rounded rect the button gets disappeared and I am unable to figure out why? I might be doing some silly mistake but I am really kinda stuck with it right now so I'll be very much thankful to all of you for helping in this regard.
Iphone cocoa-touch uitableview uitableviewcell link|improve this question edited Jan 4 '11 at 19:51Chris Hanson21.4k44072 asked Jan 4 '11 at 19:26Tobias332311 100% accept rate.
1 you might want to post some sample code – sha Jan 4 '11 at 19:29 You problem might be just a silly mistake. Unfortunately you haven't given us enough information to find it. Show us what you are doing and perhaps we can show you why you do not see the results you expected.
– Jonah Jan 4 '11 at 19:59 madmik3 and all others thanks for the replies.. though I was trying bit similar that you suggested madmik3 but it didn't work.. anyways I found out the solution in the uicatalog (developer.apple.com/library/ios/#samplec...) for SDK4.2, modified it according to my needs. – Tobias Jan 5 '11 at 13:56.
You will need a UITableViewDataSource developer.apple.com/library/ios/#documen... Then something like this - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"CellIdentifier"; // Dequeue or create a cell of the appropriate type. UITableViewCell *cell = tableView dequeueReusableCellWithIdentifier:CellIdentifier; if (cell == nil) { cell = UITableViewCell alloc initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier autorelease; cell. AccessoryType = UITableViewCellAccessoryNone; } // Get the object to display and set the value in the cell.
Cell addSubView: YOUR_BUTTON; cell addSubView: YOUR_OTHER_BUTTON; return cell; }.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.