In my application I am using two storyboards, one is for English language and the other is for Arabic language. Now I delete one viewcontroller i.e. "MyOrderHistoryViewController" both from Arabic as well as English storyboards, then I run my application and it's still showing MyOrderHistoryViewController which I have deleted on simulator. I am not getting why this is happening, please help me.
Related
After updated to Swift 4.2 I tested new app version on iPhone where is a main language is Russian. Region is also Russia, but app using English Interface builder storyboard (Base). Even I have Russian one.
I also have Localizable strings for UIAlertController.
And it works. I mean, when I use my app on my iPhone (Russian language. Region is Russia) then I see English Interface builder storyboard, but alerts on Russian.
I didn't set language in scheme.
I even created new project there made 2 languages. Same problem.
Help me please where is a problem. Why iOS doesn't wanna see necessary Interface builder storyboard
Just FYI. I had the same issue and I accidentially removed a semicolon in the Storyboard translation file.
Syntax errors in the Localizeable.strings will prevent Xcode from compiling, but NOT in in the storyboard . This will cause XCode to ignore this file and just skip this translation.
I'm facing the same issue, I have Chinese and English(Base) in my MacOS App. The App always showing the Base Storyboard in Xcode 10 while it displays correctly in Xcode 9.x.
In the Build Log View, zh-CN.lproj/Main.storyboard never shows up, that means Xcode 10 does not compile it at all.
Since I update to Xcode 10.1, the issue disappeared.
I think Apple have fixed it.
I was reading the iOS 8 series from RayWenderlich.com website.
I came to the localization and internationalization. Read every single bit of it but I could not succeed on localizing images. (I did localized strings with no errors :) )
Here is what I have done:
1- Created a project of Single View Application
2- Placed an UIImageView on the Sotryboard by drag and drop.
3- Added my image to my project (back.png).
4- Assigned my UIImageView to that image (back.png).
Now is the steps for localization:
1- Go to project navigator and select the project.
2- Under localization, "Use Base Internationalization" us checked by default.
3- I added Arabic language.
4- Localized Storyboard files and its .strings and my image (back.png)
I have two image files English and Arabic versions. Each file on its respective folder. See screenshot.
When I run my app on the simulator which has Arabic language installed and selected. My imageView still displays the English version of the image.
I tried to use ar_SA (Arabic, Saudi Arabia) but still same issue. My image is displayed in English.
I have my simulator reset, and I have deleted derived files form library/dev.../xcode... But my app does not care about the Arabic version of the image.
if you want to localize app according to system language it is not happen in iOS 8 because it is a bug.
you can be sure from this point by trying to run the code in the following link.
https://github.com/EmanRezk/Localize.git
change simulator language to arabic in
iphone5s (7.0) then run app you will see the arabic image.
iphone5s (8.1) then run app you will see the english image.
I advice you to localize app according to app language not the system language.
One of the tabs in my UITabBar disappears when I change the language of my iOS Simulator to Norwegian. Why is this? I have created the app with Version 4.6.3 of XCode.
There could be a lot of reasons for this. You need to provide more information. How do you define your UITabBar? Are you using Storyboards or Nibs? Your Norwegian localized Storyboard / Nib might have only 1 tab defined while your English version might have three tabs.
I have found the problem.
When I tried to get my app translated I added my own languange in the Localizations section under Project-Info.
When I did this there was an extra .storyboard file created for the spesific language, so when I change the storyboard I had in xCode that did not change the second storyboard created for my language. I found my second storyboard in the directory of my app, and deleted it, and now everything works fine.
So, if your app is weird with one spesific language, it may have a spesific storyboard that does not change automatic.
At the moment I'm building an iPhone App.
Yesterday I tried to convert it to an Universal App.
It worked, but it just shows me the tab bar, but nothing else.
I've created some Web Views and a Table View, but the iPad Simulator didn't show anything, only the tab bar.
The iPhone Simulator works great, I can see all the labels, web views etc...
I've created one Storyboard for iPhone and one for iPad.
I don't know why the iPad Simulator doesn't display anything.
Hope you can help me.
Regards
Check that you have changed the storyboard name in you target general settings, as shown in the picture below.
Use the right name for you app. Check also that the info.plist file for your project has been correctly updated:
(the second entry is for the iPad).
If that is ok, try and make a clean and rebuild.
I have two quite simple custom cells in separate tableViews that since I ported my project to iOS 6 just show their content on the simulator and the iPhone but not on the iPad. What is strange is that even some static objects I added to the cell or even a coloring of the background do not show up either like there were some link to the storyboard missing that curiously only show up in the device.
What could it be and how could I check better what is going on?
As a matter of fact I was testing two different localizations in the simulator and iPad by being tricked by a string I forgot translating. The problem boiled down to the the storyboard returning me an empty prototype so bringing my program to run an old piece of code that in that case created a new (empty) cell. Why the storyboard returned nil when asked for a prototype cell is still unclear; yet once I found that one localization worked, I copied that configuration to the other ones and everything returned back to order.