Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.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, 10: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


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,276
Threads: 39,067
Posts: 171,315
Top Poster: smasher (2,575)
Welcome to our newest member, jstewuk
Powered by vBadvanced CMPS v3.1.0

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