在使用 Xcode 9 beta 6 编译我的应用程序时,我遇到了这个烦人的错误。它发生在模拟器和设备上。数字小键盘正在工作。
任何想法 ?
这也发生在转基因种子中。
这是由实现以下扩展时的内部 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