IOS small details, precautions

Source: Internet
Author: User

?? The object's workaround cannot be used in switch of object C

In the condition code (case X:) Add curly braces {} to the snippet to use the imported object


The Textfieldshouldreturn function is written, but the key to return cannot make the keyboard disappear

Because your text box does not have a delegate added. To add a delegate method, right-click the text box, and pull the outlets down to file ' s owner on it. Or add textfeild.delegate=self to the Load event;


numberofrowsinsection Problems

-(Nsinteger) TableView: (UITableView *) TableView numberofrowsinsection: (nsinteger) section{
    return 1;    //When the return value is 0 o'clock, -(UITableViewCell *) TableView: (UITableView *) TableView Cellforrowatindexpath: (Nsindexpath *) Indexpath {} does not render execution
}


TableView No data

May beTableViewThere are no binding events,or add self.tableView.delegate = Self;self.tableview.datasource = self in the Load event;


To add an Event object

Self.tableView.target = self;


click Method

Self.tableView.action = @selector (singleclickaction:);


Allow Empty Selection

self.tableView.allowsEmptySelection = YES;


IOS small details, precautions

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.