This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Changing font size of tabbaritem
I have three tabs in UITabBar. The titles I have to set are very long so the titles are getting overlapped. Is there any way to fit those titles in a corresponding tab like by increasing number of lines. Or is it not possible to write long titles in UITabBar without overlapping.
Just a unique solution ......
Set the image in Tabbar with the name rather than setting the names.
So,even that would not make the Tabbar text to be overlapping each other.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have quite a daunting challenge. I want to make this:
So:
I use a table (plain not grouped cells).
Cells must have rounded corners & shadow.
I would prefer to use CGRect to draw the cells instead of using images (for speed & space economy).
The cells in their most basic form look like Cell 1, but some have extra checkboxes like Cell 2.
Tutorials that say to use images as background for rounded cells never touch on the point about sliding the cell to reveal actions. I think that by using an image the entire frame of the cell will slide and look really awkward. How can that be overcome?
Is it possible to mix cells? Regarding adding checkboxes I though of 2 ways. Either extend the entire cell downwards and add the checkboxes & text OR just add a 2nd cell type specifically made for checkboxes (I prefer this option but I don't know if it's possible to mix cell types).
NOTE: The cell is the ENTIRE rounded rectangle, not just the upper part (The upper part is the title). They grey line is only for style and will be just an image.
I won't ask about a specific way of doing this. Each has it's own way of doing things. If you know how to do one of the things above (except creating a table view :) ), please help me (but keep in mind that it must be compatible with the rest)!
Note 2: Swift is preferred but Obj-C is fine too (unless code can't be ported to Swift).
Thanks!
i would create custom table view cells for your table view by subclassing UITableViewCell, assigning it to your table view, and from there you would be able to customize the cell with a UIView and customize the .layer.cornerRadius including all the shadow properties on .layer
This question already has an answer here:
Changing text in a UILabel is causing all my imageViews and buttons to go back to their original locations
(1 answer)
Closed 7 years ago.
I'm trying to move an image across the screen and then interacting with a text field. I programmed a buttton that defines what the position of the image is, randomly. Now, if I try to change the text in the text field, the image automatically moves back to its predetermined place. I want to know why this is happening and how can I fix it.
Now, if I try to change the text in the text field, the image automatically moves back to its predetermined place. I want to know why this is happening and how can I fix it.
It's because when you change the text, layout is performed, and so everything is positioned according to the auto layout constraints you have applied to it. You never changed the image view's constraints, so it goes back to where you left those constraints.
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.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
The tableview isn't stretching all the way vertically in iPhone 6 or iPhone 6 Plus.
Any ideas why this is happening? Thanks!
Storyboard:
UPDATE:
This question was actually really helpful in another thing to check for as to why the tableview was getting cut off: Why is my UITableView cut off in iOS 7?
There's a whole bunch of things you want to check for if your Table View Cell are getting cut off:
- are they pinned to superview or content view?
- are the constraints such that you are cutting off content without knowing it?
- is a navigation bar or tab bar cutting off content?
- check the auto resizing mask or add one if need be settingsTable.autoresizingMask &= ~UIViewAutoresizingFlexibleBottomMargin;
And multiple other reasons. Its tricky, so if you come across this Q+A and need help, just drop a note and will help!
Select your tableView and pres Pin (a litte square icon with lines on the sides down in Xcode). Then add the bottom constraint (click here, it will turn red) and set value 0. Enjoy
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.