Can i disabled swip to delete on some cell?

Hello All,
I've categorized item list on category section. and I've implement commitEditingStyle: for swipe to delete.
my Problem is when item not in any category at that time i display "No Data" on cell. i want to disabled swipe to delete for this cell.
When we add UITableViewDelegate Method
- (void)tableView:(UITableView *)tv commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath;
It's handle the automatically swipe to delete button and pass
"editingStyle == UITableViewCellEditingStyleDelete"
Please Guide me how to disable / enable for some cell.
Amit Kalariya
iPhone Developer

Implement:
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
and return UITableViewCellEditingStyleNone for the cells that you don't want to allow swipe-to-delete for.

Similar Messages

  • Can you still swipe to delete text messages in IOS 7.1

    I would like to swipe to delete text messages can this still be done in IOS 7.1. It does not seem to work for me and I tried swiping left and right. Thanks

    celestesyorkies wrote:
    I was able to use delete and swipe individual messages is this no longer an option. thanks
    That's gone in IOS 7, see my post above on how to delete.

  • Is it possible to disable swipe left delete in Mail on iOS8?

    Not only does it make it unbelievably difficult to access the 'More, Flag, Trash' options, but it deletes the email permanently without even a confirmation message…
    What a horrible, horrible UX decision. I lost a few important emails this afternoon due to this.
    Is there a way to disable it?

    I absolutely hate this as well! Hard to believe this is how this feature was implemented.
    Swipe right to "mark unread" .. Swipe left to "flag" or "delete" ... when trying to flag an important email, it is a very fine line to accidentally delete it.
    Delete should be by itself when swiping left.
    Swiping right should give you the option to "flag" or "mark as unread."

  • How can I disable warning: "This page contains some SWF objects..."

    "This page contains some SWF objects that may not work properly in the most recent version of IE..."
    Is there a way to suppress this warning?! I'm doing a find and replace on an old web site, which does not pay well! and this pops up on every page. I have to click on it to continue every time. Making me mad.
    Thanks

    Thanks for answering. In my case that won't work because I'm doing a global find and replace of some text.
    I agree though, that process would eliminate the message when I have to come back to edit the site again. It's just the thought of many dozens of pages that would need it and to be honest, I'm really not feeling that motivated to do all the up front work right now
    Like I said, there should have been a setting for this...

  • How can I disable "return key moves to next cell" in Numbers 3?

    I want to create a new line inside one cell.  I'm using Number 3.5.2 on Yosemite.
    In Numbers 2 there was an option whether I wanted the "return key [to move] to next cell", which I was able to disable. 
    Does this feature exist in Numbers 3?  I haven't found it.  If not, does anyone know a workaround?  I could not find this question on the forums (for the current version of Numbers).

    Hi Keith,
    That feature has gone in Numbers 3.
    To insert a new line in a cell in Numbers 3, type option enter.
    Regards,
    Ian.

  • NOKIA X3-02: Disable Swipe to open Collection and ...

    Hello,
    NOKIA X3-02 V6.00: How can I disable:
    Swipe to open Collection and Games

    Hello,
    here is a solution?
    Best Regards

  • HT4915 I can't swipe to delete some songs since the iOS7 update... how do i get rid of them?

    Since the new feature of having all your purchases on your library downloaded or not, some of the really annoying iTunes christmas songs are stuck without being able to swipe to delete them. I dont want to keep skipping them or make a new playlist of all my songs, how do i delete them?

    If you don't want to see previously purchased music on your song list, go to Settings>iTunes & App Store and turn off Music under Show All.

  • How can i disable an icon beside battery percentage(a phone on some dots) ?

    AN icon appeared beside battery percentage(iphone 5).its a phone icone on some dots beside battery percentage.how can I disable it?

    iPhone: Understanding the TTY symbol in the status bar

  • How can I disable 4-finger swipe left/right?

    How can I disable 4-finger swipe left/right?  I map these to far more useful keystrokes in BTT; my mappings still work but it also switches, rendering them effectively useless.  This was working for me in Lion until I did an update a couple of days ago.  Every other gesture is in trackpad config except these 2.

    That actually was disabled in my settings for me so I didn't think so.  But I went and enabled/disabled it with no result.  I then switched it to 3 fingers from 4 fingers and back again and now it's gone.  Knowing what to search for I found this thread, it seems other have had the same problem; thanks for pointing me in the right direction:
    https://discussions.apple.com/thread/3191453?start=0&tstart=0

  • How can I disable Chat in v8.0? Or, at the least, say I'm offline so that some bimbo won't be wanting to talk to me every time I start FF?

    How can I disable Messenger Chat in v8.0? Or, at the least, say I'm offline so that some bimbo won't be wanting to talk to me every time I start Yahoo mail?
    Sorry, I somehow mis-posted this under Mail Filters the first time.

    I'm in Yahoo Mail v8.0. Options > Messenger Options offers four sub-menus: General, Appearance, Privacy, and Other. None of them offer an option to turn it off...which is ''exactly'' what I would love to be able to do!
    If I choose Options > Mail Options, I can likewise find nothing under it to disable Messenger. Earlier I could simply choose Offline and not be bothered by it. These days, though, FF changes versions faster than I change underwear. If I'm just missing it in either option menu, I'll surely apologize.
    Any other thoughts?

  • Drafts auto delete: how can I disable this?

    I periodically get a message that Ff has auto deleted x drafts. How does Ff choose drafts to delete? How can I disable auto delete?

    (Please update to Firefox 22 [[Update Firefox to the latest version]])
    Drafts of? If you mean emails, Firefox doesn't delete your drafts. This may however be a feature of your webmail. This isn't the fault of Firefox, just something your webhost does on their own.

  • Hi, i have deleted accidentally some photos and the trash is empty. How can I recover them? Urgentlyyy

    Hi, i have deleted accidentally some photos and the trash is empty. How can I recover them? Urgentlyyy

    Which trash is empty? If it's the iPhoto trash, check the System Trash, as files deleted from iPhoto 11 go there. Assuming that's also empty then you have exactly two options:
    1. Restore from your back up
    or
    2. Use a file recovery app such as File Salvage - you can download a free trial and it will scan the disk for you and tell you with might be recoverable. Actual recovery will require that you purchase the app. There may be many files with the same or similar names. Always recover the largest file size.
    There are other such apps. Search on Macupdate or the App Store

  • I have multiple devices that have my iCloud E-mail, I want to disable the E-Mail on some of the devices but keep it on others, I do not have physical access to the ones I want to disable but I do have access to the devices I want to keep receiving mc

    I have multiple devices that have my iCloud E-mail, I want to disable the E-Mail on some of the devices but keep it on others, I do not have physical access to the ones I want to disable but I do have access to the devices I want to keep receiving mail, can I do this with a simple password reset or will that still leave all devices enabled?

    The simple way would be to uncheck 'Mail' in System Preferences (or Settings)>iCloud, but as you would need access to the devices in question to do that you will have to change your password, at http://appleid.apple.com. You will then need to sign out and back on all the devices you want to be able to receive mail, and it's important that you follow this procedure and note the warning:
    Firstly, if you have 'Find My iPhone/iPad/iMac' enabled on any of your devices, turn it off.
    Go to http://appleid.apple.com and click 'Manage your Apple ID'. Sign in with the current ID.
    Where it says 'Password & Security' and gives your current ID email address, click 'edit'.
    Enter your new password and click 'Save changes'.
    Now you will need to go to each of your devices and sign out in System Preferences (or Settings)>iCloud - 'Sign out' on a Mac, 'Delete this account' on an iOS device (this will not delete the account from the server).
    Then sign back in with your new ID. Your iCloud data will disappear from your devices when you sign out, but reappear when you sign back in.
    I re-iterate: before you start, turn off 'Find My Mac' (or whatever) or you will need the services of Support.
    The devices on which you have not changed the password will throw up continual error messages as they attempt to contact iCloud and fail.

  • Can I disable an Ipod from ITunes/Other Questions

    Hi all! I am new to this forum and to using IPods/ITunes, so I am still trying to learn as much as I can about them. I made the mistake of getting my very irresponsible young teenage son an IPod (Gen 3) Touch. I have asked him several times to hand the device over to me so I can review the browser’s history (I am not even sure if that is possible, but I was going to try). I am I have major concerns regarding the websites he may be visiting. I am not trying to violate his privacy, but if it was a problem showing me the device - why won’t he hand it over - so that raised some major red flags.
    So...my questions are:
    Can I disable the device from ITunes? Or can I just delete the device from my ITunes Account? Would he still be able to use it?
    I think I found a place on ITune where there was a place I could pick what parental controls that I wanted, I set those up - but I found this feature after he started hiding the device? Can this feature still work remotely without syncing?
    Is there a way to view the browsing and internet history on the device (even if he would delete it)?
    I am not sure if this would make a difference or not to answer my question, but when I had to set up the ITunes account, I did have to provide credit card information to start the account.
    I do have my daughter’s new IPod (Gen 4) Touch also linked to the same ITunes account.
    One more thought...can I just delete the ITunes account totally and start a new one for my daughter? Would this disable his device?
    Again, I am very new to using an IPod. I can get around using them (and selecting the correct features) with a little direction though.
    Thanks for your help and advice in advance it is very very appreciated!
    -SD

    Can I disable the device from ITunes?
    Not without being able to connect the iPod to the computer, no.
    Or can I just delete the device from my ITunes Account? Would he still be able to use it?
    See above.
    I think I found a place on ITune where there was a place I could pick what parental controls that I wanted, I set those up - but I found this feature after he started hiding the device? Can this feature still work remotely without syncing?
    The parental controls feature in iTunes only works for iTunes, not for a portable device. There are similar restrictions on the iPod, but those can only be set on the iPod itself.
    Is there a way to view the browsing and internet history on the device (even if he would delete it)?
    No, sorry, if he clears the history, there's no way to view it.
    can I just delete the ITunes account totally and start a new one for my daughter?
    You can start a new one, but that won't affect any existing accounts. You can change the password on the iTunes Store account he's been using. That would block him from being able to purchase any new content through that account. But you can't stop him from opening up a new iTunes Store account by using a prepaid iTunes card, available from almost any grocery store.
    Would this disable his device?
    No.
    Without being able to have the iPod in your hands, the only way you can affect it would be if you had set up the Find My iPod feature before giving the iPod to your son. If you had, you could then lock the iPod or wipe the data on it. Otherwise, there's nothing you can do until he gives you his iPod, at which time you could set up the Restrictions and, if you wish, download a web browser that allows you to set site restrictions and force him to use that browser.
    Regards.

  • How can I DISABLE the pop up 'Would you like to copy it to Library', preventing this message from bothering for each and every book, again and again, time after time? (Windows 7 64bit US).

    How can I DISABLE the pop up 'Would you like to copy it to Library', preventing this message from bothering for each and every book, again and again , time after time? (Windows 7 64bit US).
    I guess this may be a feature request. Adobe may think this is a good message for every new eBook.
    I sure would like to decide about that myself.
    Thanks in advance if this will be changed.

    singmk wrote:
    Decided to setup the mail for exchange on my N8 so I could see my work emails. Worked like a charm but after a couple of hours decided I didn't like being that contactable so deleted the mailbox.
    Now to the problem, during setup I was forced to enable the phone lock and had to pick a 7 digit alphanumeric code. Fair enough I thought and went ahead. When I removed the mailbox however the lock remained in place with the default auto time of 30 minutes. When I checked in Phone management there is no option to disable this lock so I thought I could at least change the default time to something bigger but when you try, it remains at 30 mins. You also can't disable the auto time as it pops up an error message saying can't unlock phone.
    Does anyone know if I'm missing something obvious here or is this something which can't be disabled once it's switched on? I've done a soft reset back to factory settings with no luck and the only other thing I can think of is re installing the firmware which seems a bit extreme.
    Would like to hope there is some way to have control over this. Can someone help?
    Which firmware your N8 having now? You can check firmware by choosing Call, then type *#0000#.
    My N8 works fine on security setting and able to define Phone auto lock period, by choosing Menu>Settings>Phone>Phone management>Security settings>Phone and SIM card>Phone auto lock period>User defined>Lock after(minutes)
    You will prompt to enter Lock code each time u define auto lock priod or enable/disable auto lock.
    Hope this can help you.
    If you find this post helpful, please show your appreciation by clicking the Kudos star at the left. If it provides you the solution, please click on the GREEN Accept as Solution button at below

Maybe you are looking for

  • Download file with cyrilic filename in Internet Explorer 8

    I have a problem when trying to download a file which name contains cyrillic symbols. I store the file in the database. I created a procedure, that I call using a link from my report to download the file. There aren't any problems when the filename c

  • Secure Wireless Site to Site Bridge - Aironet 1300 or 1252?

    Hi there, We're planning to connect a building no more than 50m away to our network via wireless (after careful research. The builing will only house 2 people, one requiring just internet and email access for ordering materials, the other will be doi

  • Import eps or pdf as image

    Hi everybody: Anybody know how to import eps or pfd files into a pdf document, onto an existing page? as an image, not as a page?

  • IDOC- JDBC    ---  ORA-00936: missing expression  - Error

    Hi all, I am working on a IDOC-> JDBC scenario. it works fine in development but in quality i amgetting the following message. Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Er

  • How to use Programmable resistance 2720

    Hello, I am using and programming with PXI-2720. Could I set the resistance value in CVI program? I put the niswitch.fp in my project.   Do I need to control all relays for making 30ohm( example value) at my program? Could you help me if you have any