小编Mat*_*oAB的帖子

XCode本地化字符串Swift

我正在尝试本地化字符串列表.我有一些照片,每张照片都有一个描述,我想用另一种语言翻译.

那是代码:

var imageList:[String] = ["new_york_city_sky_house_skyscraper_59212_640x1136.jpg","79506M1pZO4U6d12i0Xzf27765gWo71P5061732uthh68xHQ8Dq1yTQ0Bj8p9F45.jpg","iphone 5 wallpaper new york.jpg","New-York-Vintage-Effect-iphone-5-wallpaper-ilikewallpaper_com.jpg","Superb-View-Over-New-York-iphone-5-wallpaper-ilikewallpaper_com.jpg","New-York-Empire-State-Building-1136x640.jpg","New-York-City-iphone-5s-wallpaper-ilikewallpaper_com.jpg","new-york-city.jpg","New-York-By-Day-iphone-5-wallpaper-ilikewallpaper_com.jpg","The-Empire-State-Building-New-York-1136x640.jpg"]

var nameList:[String] = ["1","2", "3","4","5","6","7","8","9","10"]

var sentMessage: [String] = ["Description here 1", "Description here 2", "Description here 3", "Description here 4", "Description here 5", "Description here 6", "Description here 7", "Description here 8", "Description here 9", "Description here 10"]
Run Code Online (Sandbox Code Playgroud)

我想翻译名单列表并发送消息类别,如下所示:"Descrizione qui 1"中的"Description here 1","Descrizione qui 2"中的"Description here 2"...

我能做什么?我正在学习创建一个应用程序,因为我有一些想法,但我被困在这里...谢谢!

string xcode localization localized swift

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

快速更改NavigationControl和TabBar的颜色

我想改变所有应用程序的NavigationControl后退按钮的颜色,我该怎么办?我希望用红色而不是普通的蓝色按钮...

我的TabBar有问题.我已将图标颜色和名称从标准蓝色更改为红色,具体如下:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions [NSObject: AnyObject]?) -> Bool {
    // Override point for customization after application launch.
    UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName: UIColor.redColor()], forState:.Selected)
Run Code Online (Sandbox Code Playgroud)

还有这个

class TabBarController: UITabBarController {

var color = UIColor.redColor()

override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
    self.tabBarController?.tabBar.selectedImageTintColor = UIColor.redColor()
    UITabBar.appearance().selectedImageTintColor = UIColor.redColor()
Run Code Online (Sandbox Code Playgroud)

但是我有超过5个标签,所以我有"更多"按钮,当我按下它时,图标不是红色而是蓝色,当我按下编辑标签栏图标时,标签的名称是红色,但图标不是.我能做什么?图片解释:http: //postimg.org/image/67oqa15ll/

tabbar uitabbarcontroller uinavigationcontroller swift

2
推荐指数
1
解决办法
4782
查看次数