小编Arn*_*aud的帖子

Xcode 9:使用Swift 3.1编译的模块无法在Swift 4.0中导入

更新到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 facebook-login cocoapods swift4 xcode9-beta

78
推荐指数
7
解决办法
4万
查看次数

iOS Storyboard可本地化的字符串不适用于UILabel子类

我正在使用新的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文件中获取自动翻译的东西.

有人有想法吗?

谢谢 !

fonts translation localization ios uistoryboard

5
推荐指数
1
解决办法
2192
查看次数