How to force UITableView custom cell to localise - ios

My iOS app is in English, Arabic, and Russian, my app support iPhone and iPad, when change language to Arabic, it works so good on iPhone but on iPad it not work like images that attached down,how to force UITableView custom cell to localise?.
Arabic iPhone version
Arabic iPad version

I try everything finally I deleted tableview and set it again and set everything like normal its worked so good Check image

Related

UILabel Text Not Appearing on Some Devices for iOS

This problem appears to only affect the iPad Mini 5 and the iPad Mini 4. Not the iPhone 11.
It's only the UILabel fields text. It's only on the Device, not on the Simulator.
The text display fine on anything but the iPad Mini 5 device nor the iPad Mini 4.
I've tried changing the fonts. I've tried changing just about everything that's changeable.
The app itself has been on the app store and working fine for years. Now it's not working on the iPad.
I've tried checking the uppercase/lowercase thing mentioned elsewhere. The UILabel Field background shows clearly. Just not the text that's supposed to appear in the fields.
Thanks
Attached is an image of the iPad Storyboard. The [Change Image] icon is a Button, and displays and works fine.
Any chance your device is on Dark Mode? If so, that would explain why text doesn't show and background does. Dark Mode by default will switch black texts to white and the other way around.
If that's the case and you don't want to support dark mode on you app, just disable it by adding this to your .plist:
<key>UIUserInterfaceStyle</key>
<string>Light</string>
I found the solution.
In the Attribute Inspector of the UIText I mean UILabel fields not displaying on the iPad, change the Behaviour from Enabled to Not Enabled.
In other words, I had that box ticked. I unticked it, and now it works on all devices.
Thanks for the responses.

UIView shows perfect on iPhone but not on iPad

I am pretty new to iOS development and I am able to create views and controllers. I have been testing using my iPhone and other sizes of iPhone and they look great. I tried once on an iPad but it was a border around the screen like in this image.
I constrained to margins and I did not give any height or width constraints so it could stretch properly. It also looks good on the storyboard viewing so what could I be doing wrong? Can't seem to find any resource online to help.
This is default behaviour when you run iphone app in ipad
This happened because your app is supported iphone only .
Tap on your project and select universal if you want to add support for both iphone and ipad.
Other option is you can check requires full screen check box but it will still show black bar
Note: However you are developing iPhone Only app but it is compulsory to check that everything works fine in ipad because apple review team will also check that in ipad and your app may be rejected if something is not proper
May be you have made an iPhone app. Try to change the setting to Universal app in the xcode settings. Normally iPhone app shows scaled on iPad, which is same as in your case.
Select Projet in xcode -> General Setting

localized launchScreen.storyboard in XCode 8 are not responding to device language change

I'm trying to have the launchScreen.storyboard to change according to the language of the device.
I made storyboards with each one having a different background color for UIImageView at the top see sample...
these storyboards are localized versions of the storyboard, so each one would be chosen according to the language of the device
the problem is :-
it always shows the english version for example when I switch the language of the iPhone's Simulator to Arabic, how can I make each one show up for the language it's localized for?
Unfortunatelly, you won't be able to achieve this. Launch screens are static and it's content is not a subject to localization.
Refering to the Apple human interface guidelines
Avoid including text on your launch screen. Because launch screens are static, any displayed text won’t be localized.
This piece of storyboard was intended to save you from creating a separate launch image for each screen resolution. iOS doesn't translate launch screen storyboards as it didn't give you a way to provide launch image for each of the supported languages.
However, you can find some workaround in this post.
Just to be sure, have you set support for those languages in Project settings(under Localizations) ?

Xcode 8 the app looks fine in the simulator but it is messed up on the real device

me app is working fine in all of the simulators ((from iPhone 5 to iPad Pro ))
and it works fine on my iPhone 6+ but when I tried it on my iPhone 6 the ui gets messed up even though it works fine on the simulated iPhone 6
this is how it looks on the simulated iPhone 6
this is how the app looks like on the real iPhone 6
how can I fix if this a did my research and nobody is talking about this issue
I found the problem but I don't know how to solve it
The constraints weren't the problem nor is the IB
outlets
The problem is because of the different languages
The simulator and my iPhone 6+ settings language was English
My iPhone 6 sitting language was arabic
You see in English you start from left to right
But in Arabic we start from right to left
If you change the language of your ios device from English to Arabic
You will notice that everything is in the opposite side that it was on
You will notice it in Home page and even in apps
These are photos of different applications in Device language settings
(( arabic - English ))
in English
.
in arabic
.
I wanted to add more photos of different apps in different languages but stock overflow says that I need at least 10 reputation to post more than 2 two links
((this is my first stackoverflow question/answer))
It would seem from the screenshots that your problem is with the view semantics. If you did not change default value 'unspecified' than those views would flip when you change languages that use left-to-right and right-to-left layout.
For more information check Apple docs or this SO question.

UIButton title issue on iPhone6 with iOS9.3.2

I created button using storyboard and set the tittle with out any underline using custom font. But i got underline under title of button in only iPhone6 with iOS 9.3.2 but not all devices. Please see the below image. I have checked all apple documents but i didn't get any solution. Is the iOS problem or iPhone problem or any settings on iPhone6 related button?
Open Setting app in your iphone, Go to general then go to accessibility, under accessibility turn off the switch for Button shapes
It may solve your problem i think. Because if you have used button with type system then it will use system's configuration for button!!

Resources