UITableView not displaying delete/move icons??

I have a viewcontroller that implements the UITableViewDelegate
@interface SettingsViewController : UIViewController <UITableViewDelegate> {
IBOutlet UITableView *settingsTableView;
I implement the methods that should show the delete/move icon buttons in the table but they won't show up. Can't figure out why??
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
self.title = @"Settings";
self.tabBarItem.image = [UIImage imageNamed:@"Gears.png"];
UINavigationItem *navigationItem = self.navigationItem;
navigationItem.title = @"Name Settings";
self.navigationItem.leftBarButtonItem = self.editButtonItem;
return self;
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEditingStyleDelete) {
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationLeft];
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
return YES;
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
NSDictionary *currentName =[[[boyNameChoices objectAtIndex:fromIndexPath.row] retain] autorelease];
[boyNameChoices removeObjectAtIndex:fromIndexPath.row];
[boyNameChoices insertObject:currentName atIndex:toIndexPath.row];
I can swipe left to right and get the red delete button on the right but not the circle and most importantly not the move icon on the right of the cell.

Oops - I overlooked that. I just remembered the other half of what is needed. Since your view controller is a UIViewController and not a UITableViewController you need more plumbing to make the Edit/Done button work. The Edit/Done button is going to call your view controller's setEditing method, not the table's.
You need to override the 'setEditing:(BOOL)editing' method in your view controller like this:
- (void)setEditing:(BOOL)editing {
[self setEditing:editing];
[settingsTableView setEditing:editing];
I also prefer to make configuration changes like adding the Edit button in the view controller's 'viewDidLoad' method instead of the 'init' method. It's safer because you know the nib is fully loaded and all your outlet's are setup.
Of course the other option is to extend UITableViewController and let it do 90% of the work for you.

Similar Messages

  • I have just updated to ISO 8 and my app icons are not displaying the correct icon but just a generic icon. Anyone had a similar problem?

    I have just updated to ISO 8 and my app icons are not displaying the correct icon but just a generic icon. Anyone had a similar problem?

    That happened to me for a short period of time after I updated. It didn't do it with all apps, but it did it with a few here and there. Try a few basic standard troubleshooting steps. Close all apps and reset the iPad.
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    You can also try resetting all settings. You will not lose any data, but most of the device settings will have to be entered in the settings app again. Settings>General>Reset>Reset all Settings.
    Hopefully it will be something simple, but don't rule out restoring the iOS software, if nothing else works, but start with this easy stuff first.

  • TS1398 Why does my iPad2 not display the WiFi icon?

    Why does my iPad2 not display the WiFi icon? I have implemented ALL of the troubleshooting tips, but my WiFi icon is still missing, and it will NOT recognize the internet connection that I know to work on my computer and iPhone.

    Try the following:
    1. Reset the AirPlay devices
    2. Reboot the router
    3. Reboot the iPad
    Note: The AirPlay icon is now in the Control Center

  • Titles not displaying in movie list

    Since upgrading to iOS 7, the titles of all my movies have vanished. Titles no longer appear in my video's on either my iPhone 5, or my iPad 3.
    To find the movie I want to watch, I now need to guess which one it might be. If I click on one of the movie icons, it brings up more information, but unless I click on one, I have no idea which movie icon I am looking at.
    This screen shot was taken of part of the movie list in my iPad. As you can see, there are no titles listed.
    In iOS 6, the title of each movie was listed just under the movie icon.
    Any ideas or help would be greatfully appreciated!

    I am having the exact same problem. Ever since the update.
    They display in the main contact section but not in the dialing contact section.

  • Automator says running OK but not displaying quicktime movie

    When I play an automator script that is meant to play a quicktime movie, it reports that it is running correctly but the movie is not displaying.

    Between clicking quicktime movie > save, did you look at the settings under Options to see what codec you were exporting to? You should have.
    Was "Make movie Self-Contained" checked on? If not, have you also deleted the original source footage? You should not have.

  • ALV footer not displayed, column header icons missing.

    Hi,
    My simple application uses the ALV grid, but the footer (showing the page number, next page icon, etc) does not display, even though there are pages and pages of data. This is in both Internet Explorer (6) and Firefox (I was expecting it to be an IE problem !).
    I have tried using the relevant method (though I think it should be visible by default):
    l_table->if_salv_wd_table_settings~set_footer_visible( value = IF_SALV_WD_C_TABLE_SETTINGS=>FOOTER_VISIBLE_TRUE ).
    but it still doesn't work. Other table settings methods do work (eg. setting the number of rows). Additionally, the icons for sorting columns do not appear in the column headers.
    I've searched on this forum, and looked for relevant OSS notes, but can't find anything. Any thoughts anyone ?
    Thanks,
    Nick.

    Hi
    Did u try with this code?
            lr_config->if_salv_wd_table_settings~set_visible_row_count( '5' ).
            lr_config->if_salv_wd_table_settings~SET_FOOTER_VISIBLE( '5' ).
    Regards
    Arun.P

  • Firefox not displaying web page icons properly unless in safe-mode

    Hi. We are developing a website at the moment and unless I have FF in safe-mode some of the icons do not display properly. All other browsers work fine and it used to display in FF with no issues. The website is www.livingonmars.com and the icons are the 2 arrows in the top right hand corner of the slideshow. When in safe-mode I see both of the arrows. When started in normal mode I see the bottom half of the left arrow and the top half of the right arrow.

    In safe mode, hardware acceleration and add-ons are disabled. You may want to try to disable you add-ons one by one to see if that helps or you can disable hardware acceleration by performing the below:
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]

  • AppleTV not displaying all movies in iTunes Store

    I've had this problem for a while and can't figure it out... whether by Genre or even in the Top 100 HD rentals, AppleTV is not displaying all the movies from A-Z. I don't mean that the onesheet posters haven't loaded and the blank markers are in their place. I mean these screens literally do not show any more selections to scroll through... I get maybe less than a third, say into the F's, and there's no more movies.
    Any ideas what is going on here and what the fix is? I've got the latest AppleTV updates installed, and I'm running 10.5.x on my computers.

    Antonio Carusone wrote:
    Winston, how do you know that Apple is aware of this issue? I haven't seen a press release for it. This problem has been driving me nuts and I hope it gets fixed soon.
    Because I have access to a special restricted area of these forums and when an issue arises that appears to be a genuine Apple problem rather than simply a user problem I pass it on, so I know they know. And no, there is no response to pass on at this stage.

  • My computer will not display my movies on to my tv using a hdmi cable what am i doing wrong

    my computer will not display using the fire wire / hdmi cable what am i doing wrong

    Hi b,
    Video does not play via the FW port. Which MBP do you have and I can help you get the right adapter.

  • Alias to Image does not display image preview icon (Regression!)

    I noticed that an alias to an image no longer displays the underlying image preview in the icon, instead you get the standard "JPEG" icon.
    I have turned on icon previews (since other images in the same folder are correctly displayed) and all that. Also if you press Space on the Alias, the fancy Preview window will open and show the correct image. The icon however is dead. I've tested this with many images and with both OS created Aliases and using "ln -s".
    This seems to apply to all kinds of alises that in the past would show the icon of their parent, not only images.
    The alias "arrow" overlay is enough to inform the user that the file is an alias, there is no need to display the standard "JPEG" icon, that is so passé.
    Not very leopardy.
    Message was edited by: zeraien

    The same thing appears to be a latent bug from Tiger -- I am seeing this in 10.4.11, and as Rob notes, it's not always consistent.
    What's worse, Rob's suggestion won't work for me... because the "Select New Original..." button is greyed out! I realize this is technically a Leopard thread, but I can't imagine this was deliberately changed between 10.4 and 10.5, so I would think it would be applicable pretty broadly.
    Any ideas or suggestions would be very welcome indeed.
    Thanks,
    /H

  • When I drag and drop an icon from the address bar to the desktop is does creat the shortcut but will not display the website icon, only the firefox icon, how can I display website icons?

    When I drag and drop a website icon from the Forefox address bar to the desk top, the short cut is created but the icon that appears is the firefox Icon. I want to disply the icon from the website that the short cut refers to. I have checked all I can think of in my computer to no avail.

    You have to assign the favicon yourself to the desktop shortcut (right-click the shortcut: Properties) after you have dragged the link to the desktop.
    You can usually find the favicon in Tools >Page Info > Media and save the icon there.
    Otherwise use the main domain of the website and add favicon.ico (e.g. mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder.

  • IMac Late 2012 will NOT display airplay mirroring icon in the toolbar.

    Here's what i have:
    Late 2012 21.5 inch iMac
    2.7 GHz Intel Core i5
    8 GB 1600 MHz DDR3
    NVIDIA GeForce GT 640M 512 MB
    I used to have the Airplay icon in the upper right hand corner of the screen dispkayed, but i had a strange reset a month ago, and now the icon wont come back. I have reset my apple TV, Airport extreme, and imac numerous times, but can;t seem to get it to work.
    Here are my display settings:
    and the empty toolbar (but i'm sure you don't need it):
    Haven't been able to mirror my iMac since it crashed. Any help would be appreciated. Thank you!

    About AirPlay Mirroring in OS X
    Make sure that AirPlay is turned on in the settings menu of the Apple TV.
    If you use a firewall, make sure the following firewall security options have been set to allow AirPlay Mirroring to work:
    Choose System Preferences from the Apple menu ().
    Click Security & Privacy, then click Firewall.
    Click the lock icon to unlock it if it's locked, then type an administrator name and password.
    Click Firewall Options.
    Deselect (uncheck) the “Block all incoming connections” checkbox.
    Select (check) the “Automatically allow signed software to receive incoming connections” checkbox.

  • Apple TV not displaying "Top Movies" Thumbnails in Main Menu

    Ok, so I have the latest updates and have done the following:
    1. Have restarted my Apple TV multiple times-no change.
    2. Have reset my Apple TV multiple times-no change.
    3. Have restored once by connecting it to my macbook and restoring via iTunes-no change.
    Note: if I restart, the thumbnails reappear, but once the Apple TV powers off, the thumbnails "disappear" from the main menu about 80% of the time. The TV Show tumbnails display correctly in the main menu without any issues, along with tumbnails "in" Netflix and all other apps.
    Any ideas?

    Hello mijre64,
    For issues with playing your purchased content, take a look at the article below. It will have start with doing a reset on your Apple TV and then verifying your Wi-Fi connection. Let me know if this works or if you need further assistance. 
    Apple TV (2nd and 3rd generation): Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/en-us/TS4546
    Regards,
    -Norm G.  

  • Artwork not displaying for movies purchased on iTunes

    Fot all the movies I have recently purchased on iTunes, the artwork doen't show up.  Anyone know why?

    Hello RepsolRider
    Go to the iTunes Store > Purchases, and then you should be able to see your purchases. Click the cloud icons to download your purchases. Also go to iTunes Preferences, go to the Store tab and make sure that Show iTunes in the Cloud purchases is checked.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Room Template's icons are not displaying

    In Collaboration->collaboration content->Administration of Room part Templates,
    The Room Template's icons are not displaying.
    All icons are avilable in the folder
    \usr\sap\J2E\SYS\global\config\cm\etc\public\mimes\images
    i checked in both IE 6.0 and Netscape.
    Please give some Hints about this.

    i solved the problem.The root directory was changed.So i corrected.The path is as follows
    systemAdministration<>SystemConfiguration<>KnowledgeManagement<>ContentManagement<>FileSystemRepository

Maybe you are looking for

  • PDF File in Mail-Step Attachment using SOFM is corrupted

    Hi, i have a Problem while sending a PDF by unsing a SOFM Object for attachment in workflow. I tried my own implementation and a copy of this [SOFM instance for attaching--urgent] I both cases the Workflow sends a mail successfully. There is also an

  • Java-SQL Query, Its Urgent.....................

    hi, my problem is that i want to get data from the oracle database(SQL) and then put it into a JTABLE. The data seems to come correctly into the ResultSet rs Object, but i dont know how to put the data from the rs Object into the JTable. Please reply

  • Sum hidden fields in web dynpro ALV reports

    Hi everyone Could anyone tell if it is possible to sum a field that is hidden in an ALV Report in Web Dynpro? I need to hide a row so as not to be seen by the user (like the filter option) but with the need that the value that is stated in that hidde

  • Windows 8 jumpy mouse on T530 when docked

    I am having a problem with my T530 and Windows 8 Enterprise.  The mouse gets very jerky and jumpy when the cursor changes...i.e. if I move it across a text box and the mouse icon changes from the arrow to a cursor.  The strange thing is this only hap

  • Can the trial version with everything installed create mysites and other applications?

    Hello Community     IF you have WS2012 and you install Sharepoint 2013 Server Stand-Alone used for trial environments and it installs all components can you create  Yammer, MySites, User Profiles,  etc?     Thank you     Shabeaut