[UIPickerView Case 06-Province and City Selection Interface Data Display 02-Province and City Display on Label Objective-C Language]
Mobile
2023-09-08 19:27:25
views: null
1. Next, I want to display the city, province, and label on the Label below.
1. But, can we get its Label now?
Is it the same thing, dragging the line?
Switch to the three views and select the ViewController.m file
Inside the class extension,
As for the one on the left, hold down the Control key and drag it in.
Name:provinceLbl,
As for the one on the right, hold down the Control key and drag it in.
Name:citiLbl
write a note,
Check to see if it's there. It's there this time.
1. Now, we already have this selection method, didSelectRow,
Next, if it is below, its text content will be displayed.
This displays text content. Please think about how to display it.
First, we say, you roll this province,
You need to display this content,
Origin blog.csdn.net/madoca/article/details/132730843