Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9125047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:42:38+00:00 2026-06-17T06:42:38+00:00

I am doing things within the edit mode of UITableView using editingStyleForRowAtIndexPath to return

  • 0

I am doing things within the edit mode of UITableView using editingStyleForRowAtIndexPath to return UITableViewCellEditingStyleInsert or UITableViewCellEditingStyleDelete.

It works rather well, but there one thing I tried with no success.
I tried the following, using the bitwise or operator:

return UITableViewCellEditingStyleInsert|UITableViewCellEditingStyleDelete;

hoping to return to return UITableViewCellEditingStyleInsert and UITableViewCellEditingStyleDelete at the same time.

I do not see why it should not be possible. I would just mean that I want to be able to delete the cell and I also want to be able to insert one other cell before.
But how about the reality?
Am I missing some point?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:42:39+00:00Added an answer on June 17, 2026 at 6:42 am

    It’s by design, a cell can only have one editing style. Besides the controls are placed in the same location. Also the way the enum is defined:

    typedef enum {
        UITableViewCellEditingStyleNone,
        UITableViewCellEditingStyleDelete,
        UITableViewCellEditingStyleInsert
    } UITableViewCellEditingStyle;
    

    It’s not designed for ORing like some option enums are, for example the UIViewAutoResizingMask from UIView:

    enum {
        UIViewAutoresizingNone                 = 0,
        UIViewAutoresizingFlexibleLeftMargin   = 1 << 0,
        UIViewAutoresizingFlexibleWidth        = 1 << 1,
        UIViewAutoresizingFlexibleRightMargin  = 1 << 2,
        UIViewAutoresizingFlexibleTopMargin    = 1 << 3,
        UIViewAutoresizingFlexibleHeight       = 1 << 4,
        UIViewAutoresizingFlexibleBottomMargin = 1 << 5
    };
    typedef NSUInteger UIViewAutoresizing;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing things considered horrible by some lately, but I personally enjoy this kind
When using auto-registration with castle windsor I see people doing things like _container.Register( AllTypes.Pick().FromAssembly(Assembly.GetExecutingAssembly())
I enjoy learning and doing things on my own, but I have run into
I'm used to the old Winforms way of doing things. Apparently WPF ListViews are
Sometimes I have to write code that alternates between doing things and checking for
So I've been messing around with libcurlpp doing things like trying to download HTML
I'm having trouble adjusting my thinking to suit OpenMP's way of doing things. Roughly,
Okay I'm trying to go for a more pythonic method of doing things. How
I'm new to Java Web Services, so I might be doing things wrong. I'm
I am having trouble programmatically removing stacks from a view. I am doing things

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.