Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.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
Ios 菜单选项卡中出现问题。我正在使用carbonKit框架_Ios_Swift_Carbonkit - Fatal编程技术网

Ios 菜单选项卡中出现问题。我正在使用carbonKit框架

Ios 菜单选项卡中出现问题。我正在使用carbonKit框架,ios,swift,carbonkit,Ios,Swift,Carbonkit,我希望两个选项卡(Hello World,选项卡)的宽度与控制器的宽度相等。我把我的标签的完整代码。如果有人对此有建议的话。请给我建议,我在等你。快速评论和回答 这对你有帮助 首先,像这样设置控制帧以使屏幕宽度等于宽度 var frameRect: CGRect = (carbonTabSwipeNavigation.carbonSegmentedControl?.frame)! frameRect.size.width = UIScreen.main.bounds.size.width ca

我希望两个选项卡(Hello World,选项卡)的宽度与控制器的宽度相等。我把我的标签的完整代码。如果有人对此有建议的话。请给我建议,我在等你。快速评论和回答

这对你有帮助

首先,像这样设置
控制
以使屏幕宽度等于
宽度

var frameRect: CGRect = (carbonTabSwipeNavigation.carbonSegmentedControl?.frame)!
frameRect.size.width = UIScreen.main.bounds.size.width
carbonTabSwipeNavigation.carbonSegmentedControl?.frame = frameRect
在那之后,写这行等宽

carbonTabSwipeNavigation.carbonSegmentedControl?.apportionsSegmentWidthsByContent = false
1。等宽前

2。等宽后

这对你有帮助

首先,像这样设置
控制
以使屏幕宽度等于
宽度

var frameRect: CGRect = (carbonTabSwipeNavigation.carbonSegmentedControl?.frame)!
frameRect.size.width = UIScreen.main.bounds.size.width
carbonTabSwipeNavigation.carbonSegmentedControl?.frame = frameRect
在那之后,写这行等宽

carbonTabSwipeNavigation.carbonSegmentedControl?.apportionsSegmentWidthsByContent = false
1。等宽前

2。等宽后


@veerendrapratapsingh,删除这一行
tabSwipe.setTabExtraWidth(40)
tabSwipe.insert(introotviewcontroller:self)
行添加到4行以上<代码>var frameRect:CGRect=(tabSwipe.carbonSegmentedControl?.frame)!frameRect.size.width=UIScreen.main.bounds.size.width tabSwipe.carbonSegmentedControl?.frame=frameRect tabSwipe.carbonSegmentedControl?.AllassessSegmentWidthsByContent=false
Superb@Kuldeep,感谢您的回答。我想知道CarbonKit的作者是否在库中添加了阿拉伯语等语言的从右到左的制表符。@veerendrapratapsingh,删除这一行
tabSwipe.setTabExtraWidth(40)
tabSwipe.insert(introotViewController:self)
line添加到4行以上<代码>var frameRect:CGRect=(tabSwipe.carbonSegmentedControl?.frame)!frameRect.size.width=UIScreen.main.bounds.size.width tabSwipe.carbonSegmentedControl?.frame=frameRect tabSwipe.carbonSegmentedControl?.AllassessSegmentWidthsByContent=false
Superb@Kuldeep,感谢您的回答。我想知道CarbonKit的作者是否在库中添加了阿拉伯语等语言的从右到左标签。