Increase the gap between TableView sections? - ios6

Is it possible to increase the gap between TableView sections?
I have two sections that are grouped and I want to add a segment controller in between two sections. I've got the segment controller in the area I want it but I need the second section to start further down, can this be done?
Thanks

Either put an additional section in the table to hold the segment or add a section header view to the section below the segment. Just provide an empty view for the header. Implement the heightForSectionHeader... method so the height comes out as needed.

Related

Is it possible to manipulate the layout in react and save it?

I want to make a layout with a flexible partitioning in ReactJS.
Elements should change their size by dragging (or equal operation).
When working with fat clients (desktop applications), it is possible to manipulate the layout of the application. E.g. is adjusting the size of a section by pushing the the left mouse button at the border of the section and keep it hold. Moving to the left or right direction will shrink or increase the size of the section. Another handy example is the cell in Excel. You can define it's size by manipulating the row or column size (thus affecting the positioning on any following columns/size).
Is this possible (in ReactJS)?
Is this a ReactJS problem? (or simply affects only CSS or any other technology?)
Let's say you adjusted
the size elements for yourself. Is it possible to save the
customization, so that I as user don't have to adjust it again?
As I found out, it isn't a specific reactjs problem. It's about JS in general.
If you want to store a customized layout with its values, you should use
https://developer.mozilla.org/de/docs/Web/API/Window/localStorage

Need to provide spaces between cells in UITableview in ios

I need to provide space between cells in UITableview.And I am also posting an image which consists of here two cells.I have gone through previous posts,but I am unable to find a suitable answers.
Thanks coders
There are several ways to achieve this, and none as simple as you may expect, the two ways that come to my mind right know are:
Define your custom cell to add an space on bottom by playing with the foreground background. If you dont need the space (for instance at the last cell) resize the cell to hide it.
Use a grouped table with one section per cell so you can use that section as space

How to reduce size of image display window in opencv?

I am using opencv to process very large images (some times even more than 2500x2000). When I display such an image using a normal cvNamedWindow it occupies the whole screen and even I am unable to scroll down or sideways to see other parts. Is it possible to reduce the size of image only while displaying?
Note: the size of my images are not constant
platform used : visual studio
You have to use the flag CV_WINDOW_NORMAL to alter this behavior. This flag will make the window manually-resizable.
cvNamedWindow(yourWindowName, CV_WINDOW_NORMAL);
i don't know whether any in-built function is available to do that or not, but i can suggest u to write ur own image processing function for displaying the generated image... which takes only alternate rows and column information for display that wud reduce the image to 1250X1000, so depending on ur need u can take every 3rd row or column if u want the size to be further less... This wud give a hit to the performance as per displaying time as temporary images wud need to be generated but wud give u the desired results.

SSRS: Report label position dynamic

I have a report which displays customer address in multiple labels.
My customers use windowed envelopes for mailing. I need the address labels position to be configurable.
Something like, I'll have a database table which stores the Top/Left position of each label per customer. Based on this table, I need to position the address labels on my report.
I thought, it is doable by expressions, but Location property doesn't provides ability to set an expression and make the label's top and left dynamic.
Anybody, any ideas, on how to achieve this?
As you mentioned, you cannot set an expression for location property. I want to do this before but it seems that there is no solution for this work.
Sorry for the duplicate post
I had the same problem as you did. I got around the problem by using an old HTML trick. It involves using a transparent.gif in an image. You put your image (linked to the gif), then put your label on top. Using a parameter, you can toggle which item to appear by setting an expression in the hidden property for both controls.
As stated by others, it isn't supported. However, here are two ugly work around possible for basic reporting.
Work around with padding.
You can't set formula on the label's location, but you can use padding option instead.
So you can set the label as wide as the report and as tall as the region.
Also, set the label's horizontal alignment to "Left" and Vertical alignment to "Top".
Then, add a formula in left and top paddings to offset the text.
You can also achieve a right aligned offsetted label by setting the Horizontal alignment to "right" and using right padding instead of the left one to offset the field from the right. With the same recipe, you can offset from the bottom by using "bottom" vertical alignment and bottom padding.
The ugly side:
This method will create a mess in the report designer as all dynamic label will overlap each other and take all the space over static label. Also, please note that with this method, you won't be able to do fancy stuff like adding borders around the text and hyperlinks.
Work around with sub report.
If the number of different positions for the label(s) are really low. You can create a subreport for each possibility and use a formula to display the right subreport for the right case. Sadly, this doesn't work for labels in the header as subreport aren't allowed there.
No solution, as it is not supported!!!
From MS online community support...
"As far as I know, the position of the textbox in the report is static not dynamic, so it will not shift to left."
Reference: http://forums.asp.net/t/1433297.aspx

I want to know the number of times the same image has been added to the ListBox of images

I have a ListBox of images. I want to know the number of times the same image has been added to that ListBox. Any solutions?
If you want to check that the image itself, regardless of the file name, is not repeated then generate an MD5 checksum for the image data and store that.
If you want to make sure that the two are always linked then either tag it onto the end of the file or create a class which holds the image and the checksum together.
The MD5 check can be used to differentiate any data file, even different versions of the same file if the content is in anyway different.

Resources