【问题标题】:iOS 11 beta 9 empty keyboard keysiOS 11 beta 9 空键盘按键
【发布时间】:2017-09-12 09:19:34
【问题描述】:

我在使用 Xcode 9 beta 6 编译我的应用程序时遇到了这个烦人的错误。 它发生在模拟器和设备上。 数字小键盘正在工作。

有什么想法吗?

【问题讨论】:

  • 这是一个错误(很可能不是代码中的错误,除非您使用的是私有 API),请提交雷达报告。
  • ios 11 GM 也会出现
  • 不编译。跑。档案bugreport.apple.com

标签: ios xcode ios11 xcode9beta6


【解决方案1】:

这也发生在转基因种子中。

这是由实现以下扩展时的内部 iOS 11 问题引起的。去掉扩展,键盘就回来了。

UIView+TintColor.h

#ifndef UIView_TintColor_h
#define UIView_TintColor_h

#import <UIKit/UIKit.h>
@interface UIView (TintColor)
@property (nonatomic,retain) UIColor* tintColor;
@end
#endif /* UIView_TintColor_h */

UIView+TintColor.m

#import <Foundation/Foundation.h>
#import "UIView+TintColor.h"
#import <objc/runtime.h>

static char const * const tintColorKey = "tintColorKey";

@implementation UIView (TintColor)

-(UIColor*)tintColor
{
    return  objc_getAssociatedObject(self , tintColorKey);
}

-(void)setTintColor:(UIColor *)tintColor
{
    objc_setAssociatedObject(self, tintColorKey, tintColor, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

@end

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-12-28
    • 2016-12-18
    • 1970-01-01
    • 2018-01-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-05
    相关资源
    最近更新 更多