更新到Xcode 9后,我尝试构建我的一个项目.
我使用FacebookLogin pod.我在FacebookLogin/LoginButton.swift中有编译器错误
@testable import FacebookCore
? Module compiled with Swift 3.1 cannot be imported in Swift 4.0
Run Code Online (Sandbox Code Playgroud)
在我的目标构建设置中,Swift语言版本设置为Swift 3.2.
我想我需要等待Facebook更新他们的pod?还是其他任何建议?
谢谢 !
我正在使用新的iOS功能来翻译故事板(http://developer.apple.com/library/ios/#referencelibrary/GettingStarted/RoadMapiOS/chapters/InternationalizeYourApp/InternationalizeYourApp/InternationalizeYourApp.html)
这个解决方案的问题,它不适用于我的UILabel子类.
以下是我的UILabel子类的代码:
.H:
#import <UIKit/UIKit.h>
@interface LabelThinText : UILabel
- (void)awakeFromNib;
-(id)initWithFrame:(CGRect)frame;
@end
Run Code Online (Sandbox Code Playgroud)
.m:
@implementation LabelThinText
- (void)awakeFromNib
{
[super awakeFromNib];
[self setFont:[UIFont fontWithName:@"Raleway-Light" size:[[self font] pointSize]]];
}
-(id)initWithFrame:(CGRect)frame
{
id result = [super initWithFrame:frame];
if (result) {
[self setFont:[UIFont fontWithName:@"Raleway-Light" size:[[self font] pointSize]]];
}
return result;
}
@end
Run Code Online (Sandbox Code Playgroud)
我想我错过了从Storyboard.strings文件中获取自动翻译的东西.
有人有想法吗?
谢谢 !
ios ×2
cocoapods ×1
fonts ×1
localization ×1
swift4 ×1
translation ×1
uistoryboard ×1
xcode9-beta ×1