cornerradius Questions
13
Solved
I am trying to add a border radius to a LinearProgressIndicator in Flutter.
When I replace the LinearProgressIndicator with another widget (e.g. Text) in the code below, it works, as expected.
Co...
Brash asked 17/8, 2019 at 7:19
11
Solved
I know you can use .cornerRadius() to round all the corners of a SwiftUI view but is there a way to round only specific corners such as the top?
Ancell asked 25/6, 2019 at 18:50
5
Solved
With UIKit, it's possible to give a control (e.g. a button) perfectly rounded corners (resulting in a circle on each side) by using this approach:
exampleButton.cornerRadius = exampleButton.frame....
Wingfield asked 24/11, 2019 at 2:34
15
Solved
I'm trying to create a button with rounded corners and a drop shadow. No matter how I switch up, the button will not display correctly. I've tried masksToBounds = false and masksToBounds = true, bu...
Oldwife asked 9/7, 2014 at 3:11
4
Solved
My goal is to increase corner radius of the modally presented controller to 25. As you can see in the picture it has rounded corners by default but I need them to have greater radius. I've tried ro...
Pleo asked 23/10, 2019 at 16:38
5
Solved
I want to set different corner radius for a view in iOS. I am able to set the radius for each corner to the same value like the one mentioned in the following post How to set cornerRadius for only ...
Faxen asked 9/11, 2016 at 1:1
6
Solved
I created a rectangle using following code and now I need to rounded the corners of this rectangle. but I can't find a property called layer.cornerRadius, can anyone help me ?
class OvalLayer: CAS...
Bituminize asked 28/1, 2016 at 5:54
9
Solved
I usually use the following code to set rounded corners.
imageView.layer.cornerRadius = 10
It works when the imageView is set at Aspect Fill.
But when the imageView is set to Aspect Fit mode, a...
Kerekes asked 23/1, 2016 at 10:4
4
Solved
I have a text field in swiftUI, and in order to make it more appealing I'd like to add a border and have rounded corners. But it doesn't seem to work like it's supposed to (see image). What did I m...
Onder asked 16/4, 2021 at 21:27
5
I've spent almost a couple of hours to figure it out. However, it did not happen and finally, I had to come here. Two things are required to be achieved:
Firstly I'd like to have a spontaneous co...
Propitiate asked 7/3, 2019 at 11:17
4
The following code works on an iPhone but on an iPad the circle is not evenly rounded.
How can I make the view look like a circle on both devices?
let width:CGFloat = UIScreen.main.bounds.width*0...
Primogeniture asked 7/11, 2017 at 8:5
6
Solved
Simple question. I need a frame with only one rounded corner, instead of all four. How can I only round one of the corners of a frame (top right in my case)?
Another way to phrase it: How can I se...
Eolanda asked 4/9, 2019 at 14:8
31
Solved
Is there a way to set cornerRadius for only top-left and top-right corner of a UIView?
I tried the following, but it end up not seeing the view anymore.
UIView *view = [[UIView alloc] initWithFra...
Chukchi asked 15/4, 2012 at 23:58
5
Solved
I have a UIView in a custom UITableViewCell and I want to round just bottom Left and Right corners of that view. I'm doing the following, but it's not working:
- (void)awakeFromNib {
// Initializ...
Ruprecht asked 28/1, 2016 at 11:26
7
Solved
My iPhone app is currently displaying a grouped table with 2 sections. I tried to change the radius of the rounded corners on the first and last cells of each section (or on the same cell in the ca...
Saritasarkaria asked 19/9, 2012 at 9:42
2
Solved
How can I add a circular view similar to the attachment below. In the attachment, the check is the image icon and I want to add the green background color in circular shape. I have a solution in Sw...
Sewell asked 14/12, 2021 at 18:18
8
Solved
I have a custom UITableView cell.I am setting it's bottom left & bottom right corner radius.I am setting corner radius in cellForAtindexPath.Below is the code for that
if indexPath.row == 9 {...
Extenuate asked 10/5, 2017 at 8:50
6
Solved
I'm updating my app to use UIStackViews, now that most people should have updated to iOS 9.
In the old version, I made a UIView consisting of two UITextFields and set its layer.cornerRadius prope...
Fastness asked 25/11, 2015 at 23:0
3
Solved
The situation is that when I modify a Card view background from a program then the corner radius of the Card view reset. But why?
(I don't think I need to provide any other information (code, pictu...
Pulpiteer asked 14/4, 2018 at 22:16
5
Solved
I'm trying to make a circular progress bar on android and it seems pretty straightforward task , but I'm struggling with rounding the edges of the progress and secondary progress.
Is there a way t...
Eades asked 4/7, 2015 at 10:17
10
Solved
In Objective-C such line
self.mainImageView.layer.cornerRadius = CGRectGetWidth(self.mainImageView.frame)/4.0f;
does its job, I tried it in Swift using analogy
self.mainImageView.layer.cornerRa...
Downtrend asked 9/1, 2015 at 13:13
8
Solved
I'm currently looking at a UILabel with the property addMessageLabel.layer.cornerRadius = 5.0f; On a device with iOS 7.0 installed, it has rounded corners. On a device with iOS 7.1 installed, it do...
Unlock asked 11/3, 2014 at 5:0
7
I am trying to set cornerRadius of UIButton but I dont know how to do it.
If I do like this:
button.layer.cornerRadius = 5;
works well, if I do like this :
button.layer.cornerRadius = 5;
[butt...
Bullard asked 1/7, 2013 at 9:20
8
Solved
I'm trying to animate the change of the cornerRadius of a UIView instance layer, but the variation of the cornerRadius takes place immediately.
Here's the code:
UIView *view = [[UIView alloc] initW...
Nedranedrah asked 10/5, 2011 at 9:44
3
Solved
I'm trying to get the circle below to have an opaque solid white color where the cornerRadius cuts out the UIView.
UIView *circle = [[UIView alloc] initWithFrame:CGRectMake(i * (todaySize + rightM...
Maffei asked 12/11, 2014 at 9:39
1 Next >
© 2022 - 2025 — McMap. All rights reserved.