My aim is to create an UICollectionView with different cell sizes and all cells "fit in". There should be no empty place around the cells.
Here is an image of my Demo Application:
The sizes of t he Cells are quarter, quaver and semiquaver (1/4, 1/8 and 1/16).
So how can i realize that? How can i delete the white space around the cells to push them all together to get a look like mosaic?
thanks for your help,
brush51
Take a look at RFQuiltLayout https://github.com/bryceredd/RFQuiltLayout it is exactly what you need.
Related
I am looking for a help to display labels for a selected stack bar, e.g. "Net impacts" stack, in the facet_wrap stack figure below. I tried to use geom_text(aes(label=ifelse())) but it does not work.
Any suggestion would be grateful. Thanks in advance.
Stack-bars chart Figure
Update: So, instead of displaying the labels for a selected stack-bar, I've just come up with the combination of stack-bar and point chart figure Stack-bars and Points chart. I am satisfied with the yellow points presenting sum of stack-bars at each column, though it would be much better if these values can be showed on each bar. Any suggestion please?!
In addition, is it possible to show scientific number as labels for the points/stack-bars?
I tried to insert the background image using following code:
Pic = "C://Picture/Logo1"
Activesheet.SetBackgroundPicture Pic
This inserts the picture to full sheet but I want to add it to particular cell or a range of cells. Please help
As far as I know excel doesn't support appending the image to a cell (with or without VBA).
The background of a single cell supports colors/gradients/fill-patters, but not the pictures.
It is possible however, to "place" the picture (shape) object with the same width and height right above the cell and make it locked and move around together with the cell if somebody attempts to resize cell widths. I personally wouldn't go that way, too much to code and too much risk of breaking the structure.
I've got a UITableView filled with UITableViewCells.
Now when I scroll down, there's a problem with the two bottom cells. The last cell shows up as the third from the bottom and there are two additional cells below which shouldn't be there.
What are possible causes of such a behavior?
Editor's note: I hope I correctly interpreted the question. The problem could also be that the last two cells don't show up at all.
The number of cells in the table view stems from the delegate method numberOfRowsInSection:. Check what number is being set here, if you're counting an array then NSLog the count ([MyArray count]) and check to see if its as you expect. Its the only thing I can think of that would lead to additional or missing cells in your tableview without source code
I have a UITableView that has 3 sections. My individual cells vary in height (collapse-expand).
I need a way to figure out the height of each individual section, i.e. the sum of cell heights in each section. Preferably without calculating everything the tableView already has done each time I need it.
I there a way to deduce or access such a value?
Did you look at -rectForSection: (and possibly also -rectForFooterInSection:)?
There is no easy way to calculate the value, however there is a way. If your cells have a fixed height it's just the many rows multiplied by their fixed height for each section.
If you have varying height in the cells too, I'd go for an array which holds the total height for each section, just calculate it once and keep it cached there. If the section is collapsed you just need the section header height else it's the value in the array.
I'd like to have the value of a cell change if a specific set of grouped cells are hidden or not. Is there a worksheet change action for grouping and ungrouping cells? I can't seem to generate one with Macro Recorder; it doesn't seem to care if cells are hidden or unhidden in a group. Then, I can have a macro change the value of the cell in question - I presume easier than coding the cell itself.
Context:
There are 5 lines, one being a total, and the other 4 the accounts making up the total. There is a merged vertical cell across all 5 rows with the title. I like to hide the 4 accounts, but when I do, the merged title cell only diplays enough to fit into one line, so I'd like it to then revert to an abbreviation (which I would provide).
It's a bit esoteric and pointless, but any thoughts?
Solved. This post gives the essentials of what I needed:
http://www.ozgrid.com/forum/showthread.php?t=87457