Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何在UISegmentControl中获取所选UISegment的标题?_Iphone_Objective C - Fatal编程技术网

Iphone 如何在UISegmentControl中获取所选UISegment的标题?

Iphone 如何在UISegmentControl中获取所选UISegment的标题?,iphone,objective-c,Iphone,Objective C,所选段的类显示为UISegment,我找不到该段的类引用。肯定有办法从文档中访问与所选索引关联的标题: NSString*selectedTitle=[mySegmentedControl titleForSegmentAtIndex:[mySegmentedControl selectedSegmentIndex]]

所选段的类显示为UISegment,我找不到该段的类引用。肯定有办法从文档中访问与所选索引关联的标题:

NSString*selectedTitle=[mySegmentedControl titleForSegmentAtIndex:[mySegmentedControl selectedSegmentIndex]]