Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/356.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添加到CPTGraphHostingView?_Iphone_Objective C_Core Plot - Fatal编程技术网

Iphone 如何将UISegmentControl添加到CPTGraphHostingView?

Iphone 如何将UISegmentControl添加到CPTGraphHostingView?,iphone,objective-c,core-plot,Iphone,Objective C,Core Plot,如何将UISegmentControl添加到CPGraphHostingView?当我尝试添加UISegmentControl时,它通常会被CPGraphHostingView覆盖您是否尝试了类似[graphHostingView-bringsubview-front:segmentedControl]的操作?不要将子视图添加到CPTGraphHostingView中。相反,让它和UISegmentControl具有一个公共父视图的同级视图。您能解释一下将UISegment控件放入CPGraph

如何将
UISegmentControl
添加到
CPGraphHostingView
?当我尝试添加
UISegmentControl
时,它通常会被
CPGraphHostingView
覆盖您是否尝试了类似
[graphHostingView-bringsubview-front:segmentedControl]
的操作?

不要将子视图添加到
CPTGraphHostingView
中。相反,让它和
UISegmentControl
具有一个公共父视图的同级视图。

您能解释一下将UISegment控件放入CPGraphHostingView的要求吗?我想要一个UISegment来显示3个月的图表,1年etc数据也尝试
segmentedControl.layer.zPosition=1
。现在它正在显示,但我已经放下了segmentedControl。它正在向上显示,我无法按分段控件查看
瞬时
所选分段索引
属性: