Questions tagged [cliptobounds]

27 questions
0
votes
0 answers

Problem with rounded corner in UITableView in Objective C

Here is my problem. I have embed inside a UIVIew a UITableView with 3 rows. The UITableView should show a drop-shadow and should have rounded corners. To do this I created the method "setShadowsForViews" which I call in ViewDidLoad. - (void)…
0
votes
2 answers

Why does a selected image overflow the button border in swift?

I am trying to create a profile image selection button. However, every time I select an image with UIImagePickerController, the image overflows the bottom of the button border. Is there a way to make sure the image stays within the border
mostlyAsking7179
  • 204
  • 2
  • 11
0
votes
1 answer

UIImage Aspect Fill and clipsToBounds

I want to set an image to a UIImage, but as soon as I set it it the UIImageView gets bigger and goes over other elements. There is a solution provided here: Crop UIImage to fit a frame image But I can not get it to work, I set the properties like in…
PaFi
  • 888
  • 1
  • 9
  • 24
0
votes
2 answers

Prevent a UIView from Overflow outside SuperView in Swift

Let's say there is UIView(0,0,100,100) which has two SubViews, one is (-5,-5,10,10) and second is (0,95,10,10). I want to let first SubView overflow from superView but not secondOne. Is there any property in UIView which I can set to prevent a…
Kautsya Kanu
  • 451
  • 1
  • 7
  • 20
0
votes
1 answer

UIButton is placed out of bounds - should it work?

I have a UIView, and from inside the view I've attached a UIButton to be aligned to the bottom of it. Naturally I've set clipToBounds to NO, so that the button is visible. The button is aligned beautifully (with constraints) but alas, it will not…
gerbil
  • 859
  • 7
  • 26
0
votes
1 answer

Shinobi : position of the spokes in pie

I would like to position spokes in pie to be put "outside" of the pie. My problem is that on top and bottom, spokes need to go out of the "box" of the chart view. This lead to spokes be inverted and placed in wrong direction. I…
Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97
0
votes
2 answers

How to dismiss programmatically the clipsToBounds property when a GestureRecognizer begin?

I have a UIScrollView which is able to contains many view. To allow a good scrolling (without the content going outside the view while scrolling), on my Main.sotryboard , I've clicked on my UIScrollView and then in the attribute inspector I have…
0
votes
1 answer

Accessibility of elements underneath the invisble part of cliptobound(ed) element

I have a MKMapView mainMap in square proportion and its width is equal to the iPhone screen width. I make it circular by using: mainMap.layer.cornerRadius = mainMap.frame.width/2 mainMap.clipsToBounds = true Now I have a UIButton which is…
Kashif
  • 4,642
  • 7
  • 44
  • 97
0
votes
2 answers

How to prevent from clipping the subviews when I set the cornerRadius of a UIView?

I am trying to set the cornerRadius of a subclass view of UIButton, the round corner shows in a right way, but when I try to add a subView(the flower icon) on it, the subview seems to be clipped like the picture on the right side below, this is not…
trey.lin
  • 15
  • 1
  • 4
0
votes
3 answers

Reusable UITableviewcell not displaying initial images correctly

So I have a UITableview with Dynamic prototypes. The cells are custom cells with 4 properties: imageVBkg (background image) mainText (label) subtitle (label) personImageView (uiimageview with the person's photo). I had this working fine in my…
mad_dog
  • 148
  • 6
0
votes
2 answers

Changing Bounds of ScrollView shifts its location

I have a scrollview. I need to add another view as a subview of this scrollview. The subviews frame is (-13,20,200,90) So while adding this view to scrollview the as subviews origin is negative some portion of the subview gets clipped. As a…
Zach
  • 9,989
  • 19
  • 70
  • 107
0
votes
1 answer

How to set rounded corners and dont clip subview

I made button whit little arrow on the bottom like on the image. But I to add rounded corner. Here is my problem. If I add rounded corner then my button are mask to bounds and arrow is mask out. If I set setMasksToBounds:NO then button is not…
user1570600
1
2