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 5954453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:58:23+00:00 2026-05-22T17:58:23+00:00

the book I’m studying to program for iPhone says I can have a mixture

  • 0

the book I’m studying to program for iPhone says I can have a mixture of both UITableViewCellEditingStyle-Insert/Delete at the same time. But I couldn’t figure out how to do it.There’s a UITableViewdataSource method return type of which is UITableViewCellEditingStyle.But how do I return both style simultanously if I can return just one thing-either insert or delete.

  • 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-05-22T17:58:23+00:00Added an answer on May 22, 2026 at 5:58 pm

    If I’m understanding correctly, you want to update your tableview by both deleting and adding a new cell (and optionally animating that change).You need to nest your calls inside a beginUpdates block:

    [tableView beginUpdates]
    [tableView deleteRowsAtIndexPaths...
    [tableView insertRowsAtIndexPaths...
    [tableView commitUpdates]
    

    You need to make sure that your UITableViewDataSourceDelegate methods reflect that change when commitUpdates: gets called.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Each book can have many authors. And each author can author many books. class
The book says about a small Windows.Forms program The Windows Forms classes are in
A book I have says this: a) Place each value of the one-dimensional array
The book that I purchased to help with my SSIS understanding seems to have
A) Book I’m learning from says that if we handle Login.Authenticate event, then we
The book, Producing Open Source Software , suggests that it's better to have lengthy
The book says The WPF Button class only adds two simple concepts on top
The book Learning jQuery says IE has memory leak for the DOM object having
The book Professional Javascript by Zakas says that 1) IE uses event bubbling 2)
This book was written in the era of time sharing systems, procedural programming, and

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.