ios-Development Diary 24-uitableviewcell Click two times to jump to the solution

Source: Internet
Author: User

Today when writing the project found that the first time the cell click on a row, and so on click the second time will jump, in the online search the next solution, the original is in writing code when the automatic completion of the cause, in detail the following reason is because of the wrong use of this function

[CPP] view plaincopy

  1. -(void) Tableview:diddeselectrowatindexpath:


And the right one should be this.

[CPP] view plaincopy

  1. -(void) TableView: (UITableView *) TableView Didselectrowatindexpath: (Nsindexpath *) Indexpath


Didselectrow instead of Diddeselect one is the selected one is deselected

The replacement is normal later.

ios-Development Diary 24-uitableviewcell Click two times to jump to the solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.