Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($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 10-06-2009, 01:26 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 1
edcasey15 is on a distinguished road
Default UITableViewCell delete accessory position

I have a UITableViewCell and I want to change the position of the built in accessories such as the delete button and disclosure indicator. Basically I want to move them about 20px to the left.

Does anyone have any idea how I can achieve this?

Cheers,
Ed
edcasey15 is offline   Reply With Quote
Old 03-29-2010, 08:02 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Ireland
Age: 21
Posts: 472
kieran12 is on a distinguished road
Default

Quote:
Originally Posted by edcasey15 View Post
I have a UITableViewCell and I want to change the position of the built in accessories such as the delete button and disclosure indicator. Basically I want to move them about 20px to the left.

Does anyone have any idea how I can achieve this?

Cheers,
Ed
Did you ever work out how to do this?
__________________
On the iOS App Store
kieran12 is offline   Reply With Quote
Old 08-30-2010, 11:44 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 4
garethson is on a distinguished road
Default This is how I do it.

Code:
- (void)didTransitionToState:(UITableViewCellStateMask)state {     
	    
	if ((state & UITableViewCellStateShowingDeleteConfirmationMask) == UITableViewCellStateShowingDeleteConfirmationMask) {    
		for (UIView *subview in self.subviews) {              
			if ([NSStringFromClass([subview class]) isEqualToString:@"UITableViewCellDeleteConfirmationControl"]) {
Then subview is your button and you can move it.
garethson is offline   Reply With Quote
Reply

Bookmarks

Tags
uitableviewcell

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
» Online Users: 344
10 members and 334 guests
givensur, glenn_sayers, guusleijsten, ipodphone, jbro, mediaspree, mtl_tech_guy, Punkjumper, whitey99, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:34 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0