Style text field with line - xcode

I'm looking for a way to create a text field that is just a line (png or something) and on that line the user can type.
What I have is a line (png) and set this as background off the text field. Then vertical align this so the line is in the bottom.
It is almost what I want to achieve, only the text is floating a bit.
Someone could help me?
Working in xCode btw.

This is achievable by using UITextField and UIImage.
1) UITextField with
BorderStyle: UITextBorderStyleNone
Vertical Alignment : UIControlContentVerticalAlignmentBottom
2)Place UIImage right bellow the text field and add line.png

Related

ZPL script for label triple

I'm getting trouble printing some labels with a Zebra GK420t.
I have the next designer and how I need to print:
And the Zebra Designer Essentials generate the next ZPL script:
CT~~CD,~CC^~CT~
^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR3,3~SD23^JUS^LRN^CI0^XZ
^XA
^MMT
^PW192
^LL0823
^LS0
^FT109,754^A0B,28,28^FH\^FDTEXTHERE^FS
^FT109,482^A0B,28,28^FH\^FDTEXTHERE^FS
^FT109,211^A0B,28,28^FH\^FDTEXTHERE^FS
^PQ1,0,1,Y^XZ
but it only print the center text and it vertically.
What is wrong with my ZPL/design?
It is my first time with this kind of printer, so i'm very newbie and I need use Browser Print, using a Javascript Library, and all ok here. But when I printed it, everything is wrong:
Only print center text
It prints vertically
Text is cut
Thanks
What Mark said is correct, but what I want to add is that I've the feeling you created the label in zebradesigner using the landscape orientation and this explains the B parameter and also why the three text fields are vertically aligned instead of being horizontally aligned.
What you can do instead of trying to manually correct the ZPL code, is to generate a new label using zebradesigner, but setting the orientation to portrait and unselecting the "rotated" option.
Second thing is to configure the label layout in this way, just changing the dimension and the horizontal gap according to the labels you have.
This should generate a valid ZPL code.

Center Arabic/Persian/Tashkeel in a label

My label looks like this if I write a text value in English:
But like this if I paste a text value in Arabic or Persian:
It is not using the top of the label area and falls out below. It's like the text is misaligned vertically.
I would like to fix this. What happened? Am I doing anything wrong? How do I fix it?

How to shrink text to fit when single words are too long for a UILabel width in Xcode

I have a square UILabel that will show one word only. However, when that word is too long, it cuts off the word, instead of shrinking it down to fit.
How do I get the UILabel to shrink to fit a single word?
Thanks.
You can used the AutoShrink property of UILabel. Please find the below screenshot for the same.
Select the AutoShrink property.
Click on the Minimum Font Size option
Adjust any value depend on your requirement once the text will shrink.
Please refer the below GIF represenation.
Hope it works for you!!!

UILabel Transperent Text to see thru its subviews

I want to have a functionality of transparent text in UILabel I have seen one sample called named RSMaskedLabel. For label I am using OHAttributed label to use some extended functionality. So I merged some code of RSMaskedLabel to OHAttributed label's drawTextInRect method. Now I can see background image from label text. But what if I want to change that text color, set alpha of that masked text? I am giving some screenshot of FontCandy app. I want exact functionality like that app to write text on the image. I tried a lot since last 70 hours but no luck till now. if someone wants then I can upload my demo what I have done till now. please help..
add another UILabel with same frame of your label and and add your your label over that label set super view label background as clear set text colour as you want with alpha value.
with the font slider change alpha value of colour of super view label

Why is the text stretching in a Text Field in a Split View?

When I adjust the size of the text field using a divider, if the text is not selected it stretches like this.
A text field ordinarily only holds a single line of text at a time; you wouldn't make it vertically sizable. Perhaps you want a text view instead?

Resources