iOS 7 storyboard localization with attributed Labels - iphone

I am generating my String- Files with ibtool from my Base Storyboard for all my languages...For some reason ibtool is not extracting UILabels with style "attributed"...
I have no Key/Value Pair for those labels...Does somebody has a clue why?!

I ended up concluding that it couldn't be done using ibtool in the
present version.
Instead I let the Textview be a plain text view and, using my
subclass, parsed its text property so I could make a
NSMutableAttributedString and set the needed properties.
That enabled me to use ibtool to extract the strings and still have an
attributed textview.
Localizing attributed UITextView from storyboard

Related

UILabel setting text resets Label settings from IB

I have UILabel placed inside of UIViewController in Storyboard, correctly connected via outlets, everything as usual. This is how it looks like in Interface Builder.
When I simply run my app it looks like it should.
But when I set text programmatically using simple .text property, label breaks its style.
Whats going on with my label? I don't use custom class or any custom logic except setText via property. Why it dismisses IB style after setText?
upd
Here is complete screenshot of IB attributes
Probably the attributedText is set by your initial configuration, so when you set text all of the attributed text information gets removed. Consider taking a mutable copy of the attributedText and updating it (or just replacing the attributedText with something new).

Localize a UITextView

How do I localize a UITextView?
I saw a lot of examples for a UITextField but none for UITextView.
I need to localize my application's description in the about section.
If you've written the description directly into a UITextView in the XIB, you will need to duplicate the XIB (just use Xcode's localization tool) and then copy and paste the translated text into the new XIB.
If there are several XIBs or you need to send the text to translators, just use GENSTRINGS on all the XIBs. See here: http://kb.applingua.com/2011/07/extracting-strings-from-your-m-class-files/

Iphone user input structure

I am new to iPhone development and I am looking at exactly what is shown in the picture to allow users to write input.
But I cannot find what exactly is it! Are those some special kind of UITextFields? Are they a special kind of UITableView? What is it?
This is a UITableView with custom UITableViewCell's that contain UITextFields. You can easily do this by loading your UITableViewCell from custom XIB files, in which you've dropped UITextFields. As far as the "hints" you see in each field, that's the "Placeholder" property of UITextField.
Those are grouped tableviews with custom table cells that contain textfields and single line etched separators. Make sure to set the style to "grouped"
The above basically consist of UItableviewCell with a Uitextfield within it.
If you are on ios5 (which i assume you will be), you can add UItableviewcontroller from you Interface Builder and from there, taking the advice to set the style of the table to "grouped".
you should have the similar outlook of the above for the background.
In here, if you select a cell you should have the option to set a few different style to your uitableview cell.
If none of the default styles works for you, just select custom and add your own uitextfield or uibutton.
Note: There's a bit of difference between prototype cell.

iPhone App :Can we change label backgroundcolor of more then one labels in a single or minimum steps

In my iPhone App there are almost 40 nib files (xibs) and in All of them there is a label as a footer
is there any way to change the background color of all that label in a faster way instead of changing them in all xib one bty one?
Why you are using 40 labels for 40 nibs. You can add that label to main window and make your viewController a little bit smaller so that the label is visible everytime and thus you don't need to change color in 40 nib files.
The NIB files are just XML so if they follow a similar pattern (naming etc) then you could find and replace the colour property in the xml itself.
If you are able to access the UILabel prgrammatically in your code.
Then use:
myLabel.backgroundColor = UIColor myApplicationColor;

How Can you Localize a Label in iPhone SDK?

I know you can localize a NSString or even an image (which is pretty cool), but can you localize a label that is text in the iPhone SDK?
If the label is part of a XIB, you localize the XIB. If it's programmatically created, then you localize the NSString.