Tag: ios11

ios 11 UITabBar UITabBarItem定位问题

我已经build立了我的应用程序使用新的Xcode 9testing版的ios 11.我已经发现UITabBar项目通过UITabBar传播和问题是右alignment的图像的问题。 我试图改变代码来使它工作,但仍然不成功。 ios 10+ ios 11 我可以改变标题的位置使用tabBarItem.titlePositionAdjustment但是,这不是我的要求,因为它应该自动来图像本身下面。 我试着设置tabbar.itemPositioning to UITabBarItemPositioningCentered ,也试着改变itemSpacing和width ,但仍然没有工作。 有人能帮我理解为什么发生这种情况,以及如何解决这个问题? 我想要它喜欢ios 10+版本和图像取自iPad的最左angular。

即使设置被设置为“never”,iOS11照片库访问也是可能的

if UIImagePickerController.isSourceTypeAvailable(.photoLibrary) { let imagePicker = UIImagePickerController() imagePicker.sourceType = .photoLibrary imagePicker.allowsEditing = true self.present(imagePicker, animated: true, completion: { }) } 即使我使用上面的代码将“设置中的照片”设置为“永不”,我仍然可以呈现图像select器并显示照片。 在显示它之前,我会检查PHPhotoLibrary.authorizationStatus() ,但是我想知道这是否是预期的行为?

iOS 11 Safari在光标外引导模态文本区域

使用iOS 11 safari,input文本框光标在input文本框之外。 我们没有得到为什么它有这个问题。 正如你所看到的我的焦点文本框是电子邮件文本input,但我的光标是在它之外。 这只发生在iOS 11 Safari上

导航栏rightbaritem图像button错误的iOS 11

此代码在ios10中正常工作。 我得到我的标签和一个图像button,这是用户的照片configuration文件,圆形圆….好吧。 但是当运行xcode 9 ios11模拟器时,我把它拉长了。 button框架必须是32×32,当检查模拟和获取视图,并告诉xcode描述视图我得到的输出为170×32或类似的东西。 inheritance我的代码。 let labelbutton = UIButton( type: .system) labelbutton.addTarget(self, action:#selector(self.toLogin(_:)), for: .touchUpInside) labelbutton.setTitleColor(UIColor.white, for: .normal) labelbutton.contentHorizontalAlignment = .right labelbutton.titleLabel?.font = UIFont.systemFont(ofSize: 18.00) let button = UIButton(type: .custom) button.addTarget(self, action:#selector(self.toLogin(_:)), for: .touchUpInside) button.frame = CGRect(x: 0, y: 0, width: 32, height: 32) button.setTitleColor(UIColor.white, for: .normal) button.setTitleColor(UIColor.white, for: .highlighted) var buttomItem : […]