I want to fit all a-z characters but it's not showing in UITableView.I want output like below first image but I am getting output like second image.Anybody can help me to solve this issue.I put red mark on that particular area.Even I want to change text color of A-Z alphabets.
iOS will automatically truncate your array if it's too long. For example, if you view your contact list in portrait orientation you will see a full index A-Z but when you rotate to landscape you'll see A * D * .... and so on.
Reduce your array to only A-Z and it will appear correctly.
If you have other items that you can't live without, remove less used letters such as 'Q', 'X', & 'Y'. Or you can even query your table and only display the index letters from what is currently in your table but this might look odd if your missing a lot of letters.
If you must keep your full list and want to reduce the text size or font type, check out this link
To change the color of the letters just do it the IB by selecting your table view in the story board and change the text color to your desired color.
Example: Text for index is now red
Related
I'm trying to have text in my document but get the last two characters of the text contents to change size.
For example, I have a text layer in a group and I set the contents to "100ft". I would like to make the last two characters "ft" a different size than the rest of the text.
it's very easy!
1 choose your text layer
2 choose type tool from left side tools
click on your text with type tool selected
select letters that you want to change them sizes
from top panel choose any size you need
So I got this text of which I can't know the length beforehand because it depends on how many entries there are in an internal table (see below). The table is given to the Smartforms FM in my report. The text itself works fine with a dynamic text variable, but under that text I need a horizontal line. The Line needs to be right beneath the text at all time. So far I only got a line with a fixed position, which does not lead to the result I want.
If it is possible, how can I get the line to change position based on the length of the text? So that it is right under the text at all time, no matter how many lines the text got.
DATA: l_string TYPE string,
lt_stream_lines TYPE STANDARD TABLE OF string.
loop at i_tab.
* reading one line of i_tab into l_string.
APPEND l_string TO lt_stream_lines.
APPEND '' TO lt_stream_lines.
endloop.
CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'
EXPORTING
stream_lines = lt_stream_lines
lf = 'X'
TABLES
itf_text = gv_text.
* gv_text then has the full text I want to display
You must have a Main Window containing your Text element followed by a dummy Template element for the horizontal line (one empty cell with the top horizontal border in black color and other borders transparent).
Create a Template element via the context menu:
Draw the border (here I exaggerate the proportions "a little bit"!):
Preview result:
I have a bit of a strange problem. I have a UITableView controller. Inside the UITableViewCells are four profile images for the user and below each picture is a UILabel to display the name. All the labels are the same size and all the constraints are equally set up. The maximum username length is 12 characters and it displays this correctly, not text cut. I have one username though that is also 12 characters long and it is cutting off 3 characters. It should surely fit if all the other 12 character names do. Could anyone give me any pointers to why this might be happening?
Thanks
As mentioned, unless you use a monospaced font, 12 characters are going o occupy a varying amount of space.
The easiest thing to do in this case is to set the adjustsFontSizeToFitWidth to YES. This will scale the text so that it fits the width of its container.
I have a BIRT report that I have set up to use conditional formatting so that the colour of the row alternates between grey and white. It works as expected except for the fact that the grey colour in a field with a string extends slightly below where the grey extends in a field with an integer. In other words, if the grey background is 1 inch high with an integer, it is 1.1 inch high with a string. I cannot see any differences in any of the margin or padding settings so I am not sure what would be causing this small issue.
It is easy to be confused with styling, because we can set style properties on rows, cells or data fields within cells.
As you describe this issue, i think you have not applied this conditional formatting on rows, but on cells or data fields.
When a BIRT table is selected in the outline view of Eclipse designer, we need to click on the left to select the whole row, and then define a conditional formatting. Thus, physically we can't have height differences between cells (at least in html format) because the style is applied on a "div" container.
I am using SQL Server Reporting Services 2005 - I have created a portrait A4 report 8.5in by 11in.
The report consists of a header, body and a footer.
The body consists of a number of textboxes in a 2 column layout and underneath them a matrix placed onto a list.
The matrix consits of 2 fixed rows (with 1 fixed textual column in the top row and 2 dataset field columns in the bottom one) and a number of columns (each with a width of 0.875in and data taken from different dataset fields). I use the group expression =Ceiling(RowNumber(Nothing)/5) on the list, to make the matrix columns start below the previous ones every 5 repeated columns.
The problem I am facing is that a blank page (with only header and footer) is appearing between every page of report data when I export the report to PDF or print it physically, if the matrix spans more than one page of data. There is plenty of room for the columns of the matrix on the page. I have tried the following, but to no avail:
1) I checked that Page Width (8.5in) >= Body Width (7.20833in) + Left Margin (0) + Right Margin (0)
2) I checked that Page Height (11in) >= Page.TopMargin (0) + Header.Height (2in) + Body.Height (6.60417in) + Footer.Height (0.89583in) + Page.BottomMargin (0)
3) I played around with various margin values, ranging from 0in to 0.5in for the left, right, top and bottom margins.
4) I set all textboxes' CanGrow property to false. This also has the undesirable effect of chopping out the text when it cannot fit, but even so, the blank page problem still occurs.
5) I placed the list and the matrix together in a rectangle with the blank space (to the right of the matrix) outside the rectangle.
The only thing that stops the blank pages from appearing is changing the list grouping expression to =Ceiling(RowNumber(Nothing)/2), i.e. make the matrix start a new "table" every 2 repeated columns (rather than 5). This, however, I do not understand, as there is plenty of space for 3 other columns to their right and it is odd and untidy to just put 2!!
I would greatly appreciate any help in this!
Thanks in advance!
Tim
For anybody who is having a similar problem in SSRS 2008, I found the only way to fix this was to set the property named ConsumeContainerWhitespace on the Report itself to true.
In my case the issue was that the matrix on the page was narrow in design mode with a lot of whitespace to the right. When rendered, the matrix was rendered much wider (due to the data) but the renderer would also include the whitespace, causing the report to be much wider than the actual page.
If you set this property, the extra whitespace does not get rendered.
If I understand you correctly I've solved this problem before. The matrix claims extra white space, the solution I used is as follows:
You need to consume the white space.
[-------page width------]
[matrix][-textbox hack-]
I think you can set the textbox to be invisible
Note: When I attempted this in 2005, it only worked when the invisible textbox spanned the entire line.