This question already has an answer here:
How to make marquee UILabel / UITextField / NSTextField
(1 answer)
Closed 8 years ago.
is it possible to create continuous horizontal scrolling for UILabel in Objective-C.
The code in HTML would look like this, so you can get a better idea what I'm talking about.
<marquee behavior="scroll" direction="left">Scrolling text goes here</marquee>
Thanks!
There's no built in control that provides this functionality. You may want to take a look at the open source project MarqueeLabel, which is a subclass of UILabel that adds support for this effect.
Related
This question already has answers here:
How to apply blur to a UIView?
(5 answers)
Closed 9 years ago.
I have a UITableView and UIView (orange). I need that when I scroll a table, under orange area my table has a blurred. Can everybody help me? Thanks.
You could do it like described here: Apply blur to UIView
But blurring is computationally intensive, and scrolling performance will most likely be bad.
Make the orange view over the tableview, then set it's opacity.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to change UIbutton title once a UIbutton is pressed?
I want to change the text of a UIButton when another UIButton is pressed any idea?
This question has already been answer here. This did not take much to find, some people can be a bit weird about not doing much research into your questions so be prepare to get a lot of duplicated questions and people giving you bad rep for it.
Please read the faq for help on making a good question.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I create a round cornered UILabel on the iPhone?
how to use rounded corner label in iphone,UILabel Round Corners
Still pretty much getting started with Xcode and Interface Builder. I made a UI screen with several 'label' fields to display random data. But when I change the label color from the screen background color, it looks awful because they're perfect squares. Is there a way to round the corners for labels?
Thanks!
Quoting from another SO answer:
iPhone OS 3.0 and later supports the cornerRadius property on the CALayer class. Every view has a CALayer instance that you can manipulate. This means you can get rounded corners in one line now:
That post has a pretty detailed description of how to implement this behavior.
I want to do what is described here. I know I am kinda repeating the question but that post does not have an answer. I have searched the net and didn't find anything I could understand either.
So, here is my problem: I want to create an NSTextField subclass that animates text (in the way described by the other post) when the text is too long to be completely displayed. I have absolutely no idea on how to do this, so some sample code would be nice for complicated answers. If it helps, I only want to use this to animate labels (text not selectable nor editable). Thanks.
It seems that this SO entry is close to what you need. It is not based on a NSTextField but on a NSView, but the result is what you are looking for and it should note be hard to modify.
Those links should show you the way :
Making uitextview scroll programmatically
Auto Scrolling UITextView Problem
They talk about iPhone classes, but I'm sure you will be able to adapt them for NSTextField.
This question already has answers here:
How to change textfield font size programmatically?
(6 answers)
Closed 7 years ago.
I have a UITextField in a view (on an iPhone) but the input text appears very small. I don't see an option in Interface Builder to set the size.
Is there a way to set it declaratively or do I have to resort to code?
You can do it in code as well:
myUITextField.font = [UIFont systemFontOfSize:12.0f];
Cheers.
Press Cmd-T for the Fonts panel.