在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ 安装:
1. 图片-images1 func icon() -> UIImage? { 2 switch self { 3 case .sourceRegulator: 4 return R.image.home_SourceRegulatory() 5 case .regulation: 6 return R.image.home_regulationIcon() 7 case .broker: 8 return R.image.home_brokerIcon() 9 case .engine: 10 return R.image.home_engineIcon() 11 case .falseBroker: 12 return R.image.home_falseBrokerIcon() 13 case .spread: 14 return R.image.home_spredIcon() 15 } 16 } 2. 文件-Files1 let plistURL = R.file.bookPlist() 2 let jsonPath = R.file.DataJson.path() 3.字体-FontsR.font.chalkduster(size: 35)
4.Localized strings1 // Localized strings are grouped per table (.strings file) 2 let welcomeMessage = R.string.localizable.welcomeMessage() 3 let settingsTitle = R.string.settings.title() 4 5 // Functions with parameters are generated for format strings 6 let welcomeName = R.string.localizable.welcomeWithName("Alice") 7 8 // Functions with named argument labels are generated for stringsdict keys 9 let progress = R.string.localizable.copyProgress(completed: 4, total: 23)
|
请发表评论