[UIPickerView Case 06-Province and City Selection Interface Data Display 02-Province and City Display on Label Objective-C Language]

1. Next, I want to display the city, province, and label on the Label below.

notify

1. But, can we get its Label now?

notify

Is it the same thing, dragging the line?

notify

Switch to the three views and select the ViewController.m file

Inside the class extension,

notify

As for the one on the left, hold down the Control key and drag it in.

Name:provinceLbl,

notify

As for the one on the right, hold down the Control key and drag it in.

Name:citiLbl

notify
notify

write a note,

notify

Check to see if it's there. It's there this time.

notify

1. Now, we already have this selection method, didSelectRow,

notify

Next, if it is below, its text content will be displayed.

notify

This displays text content. Please think about how to display it.

First, we say, you roll this province,

notify

You need to display this content,

Guess you like

Origin blog.csdn.net/madoca/article/details/132730843