I want to remove splits (gaps) between buttons in UISegmentedControl. Segmented control is created with three images, each 60 pixels width, control is 180 pixels width. Style of segmented control is UISegmentedControlStyleBar.
But it still looks like this:
I have tried to set control width to 170 pixels or even less with no effect.
Thank you for your help.
Martin
you need to create your own customized view.
You could also call setDividerImage: on the segment control with an image which is the same color as your buttons.
Related
I'd like to have my events in scheduler whose height is 27 px to visually maintain that height while resizing or dragging. Currently it shrinks down to a fraction of its original size and users hate this. Can this be done? I'd like to just adjust the css if possible.
Thanks.
i have some picture which is 675x503. I would like to make more width on it and let's say to 1024 and in height to 400. How to do that without cutting my image and keep quality? I just would like to have this image on my website top. I got photoshop 6. I tried with Image->image size but its not what i need.
If you don't want to cut the picture at all, this will distort the image due to different height and width ratios. If this is not an issue, you could simply hit ctrl(or cmd)+t when the layer with the picture is selected. It will let you resize and rotate the entire image. There is also an option in the Image -> Image Size menu called "Bicubic Sharper", found in the drop-down list at the bottom of the menu(Photoshop CS6). It's meant for image reduction and should also solve your problem.
I want to have a larger frame than an image so i do something like this:
And of course i have UIScrollViewDelegate and i handle the zooming. But there is one problem. When i zoom picture i can scroll to this "blue" empty space in a zoom mode.
After zoom when my zoom picture width is greater than scrollView width i wish that user cannot scroll to this empty space. How can i achieve that?
(1) zoomScale 1.0:
(2) after zoom and move to edge:
(3) what i want it to be:
EDIT:
After setting contentInset:
[self.scView setContentInset:UIEdgeInsetsMake(0, -30, 0, -(self.frame.size.width-csc.width/2))];
Why it is moving to left?
There might be a simpler approach, but one way that works is to use a negative contentInset (UIEdgeInsets) to the scrollView.
I want to create a view which contains image and text, like a newspaper has.
For example, in 320 pixel width, a 200 x 100 image. The image is on the left side of the view, and the remaining space on the right side and bottom will contain text.
Well you can 3 options:
Create a layout with UIIImageViews and UITextView
Use HTML and UIWebView
NSAttributedString and draw it on a view with CoreText
That's almost certainly laid out in an UIWebView, with the styling on the image set to "float: left" with margin settings that hold the text off from the edge of it but let it wrap around it.
Here's a little tutorial about it: http://www.tizag.com/cssT/float.php
Note that this is about the HTML and CSS content to feed the UIWebView, not anything iOS-ish.
You arrange UIImageViews and UITextViews in the way you want them by setting their frames. Then assign images to the imageViews and text to the textViews.
I have a Window in my NIB which is resizable, but would like to enforce it to only be resizable vertically. How can I go about doing this?
In IB's size section, for both minimum and maximum width give the same value then you will not be able to re size horizontally.