Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone ($4.99)

dotnetIQ ($4.99)

Your First iPhone App ($1.99)

iPocket Tools 9 in 1 ($0.99)

Catch-Me (Free)

Alien Strike ($0.99)

Historic Olympic Medal-Table ($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-12-2009, 11:16 PM   #1 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 2
Default AccessoryDisclosureIndicator don't work in Emulator

Hi,
I've a problem with DisclosureIndicator with emulator, if I click it my method tableView:accessoryButtonTappedForRowWithIndexPath : isn't called.
I think is a problem of tappable area because if I substitute it with a
AccessoryDetailDisclosureButton it works fine.
Here is my code to create the table view cell:

if (cell == nil) {
CGRect frame = CGRectMake(0, 0, 300, 44);
cell = [[[UITableViewCell alloc] initWithFrame:frame reuseIdentifier:@"Cell"] autorelease];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
label = [self createLabel];
label.tag = LABEL_TAG;
[cell.contentView addSubview:label];
value = [self createValue];
value.tag = VALUE_TAG;
[cell.contentView addSubview:value];
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
}

Here is my method that should be called:

- (void)tableViewUITableView *)tableView accessoryButtonTappedForRowWithIndexPathNSIndexP ath *)indexPath {
[tableView deselectRowAtIndexPath:[tableView indexPathForSelectedRow] animated:NO];
UIViewController *subController = [[UIViewController alloc] initWithNibName:@"TextEdit" bundle:nil];
[navigationController pushViewController:subController animated:YES];
}

Any suggestion?
Thanks.

Jean
g.castaldi is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 21,502
Threads: 35,781
Posts: 156,766
Top Poster: smasher (2,449)
Welcome to our newest member, msu
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:27 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0