uiedgeinsets Questions
18
There are plenty of threads about aligning a button image according to the title text, but I can't find anything about just aligning the image to the right side of the button.
This has no effect:
...
Trailer asked 3/9, 2015 at 1:14
2
Solved
I am using XCode System Images (SF Symbols) for UITabBarItem Images. I'd like to remove the UITabBarItem Title which I have done. But also move the UITabBarItem Image down slightly.
In the past w...
Bronny asked 25/3, 2020 at 5:18
4
Solved
I'm trying to set some insets in a UILabel. It worked perfectly, but now UIEdgeInsetsInsetRect has been replaced with CGRect.inset(by:) and I can't find out how to solve this.
When I'm trying to us...
Yorke asked 26/6, 2018 at 9:32
4
I'm displaying text inside UITextView. I need to apply some padding to text. When i use value for top position it's working. If i use value for other position it's not working.
txtt_bgImage = [UI...
Crittenden asked 8/4, 2014 at 11:14
4
Solved
I've got a CGRect, and I'd like to adjust it with a UIEdgeInsets.
It seems like perhaps there might be a built in function that does this. I've looked for a CGRectAdjustByInsets or functions with ...
Anthracoid asked 2/1, 2015 at 11:44
5
Solved
I'm using a UIScrollView as my paging scroll view, pagesScrollView. Inside that, I put individual UIScrollViews which are used exclusively for zooming. Inside each of those, I have one view which i...
Timtima asked 6/5, 2014 at 6:20
2
Solved
I have a TableView inside a ViewController.
I made the TableView stretch to the View SuperMargings (with constraints) and disabled all SafeArea Inset options but my TableView is still under the Saf...
Ermey asked 17/12, 2019 at 11:16
3
Solved
Simliar to iOS Photos App where the user is zooming in and out of an image by pinching:
UIView > UIScrollView > UIImageView > UIImage
Initially, I had the issue of zooming below scale 1: image be...
Springy asked 12/9, 2016 at 23:39
3
Solved
In my UITableView I want a 'centered' separator effect in which the separator is shrunk by 30pt from left and 30 from right.
I've managed to accomplish that from Interface Builder setting the 'Cust...
Darreldarrell asked 22/11, 2016 at 14:24
4
Solved
Using Swift 4.2 with Xcode 10 beta, if I write:
import UIKit
let foo: UIEdgeInsets = .zero
Then I get a fatal error at compile time:
*** DESERIALIZATION FAILURE (please include this section in ...
Harelip asked 5/6, 2018 at 15:48
3
Solved
I'd like to create a UIButton, but with a larger tap area than the image. (Ex: 40x40 button, but the image is only 20x20, centered).
Is that what imageEdgeInsets is for?
I've set it both programa...
Trichocyst asked 2/6, 2014 at 9:2
3
I am new to iOS application development and wanted to know how to use UIEdgeInsets property in button so please guide me.
Aubarta asked 23/11, 2009 at 5:27
2
Solved
I'm having a UITextView and set content inset as
[atextView setContentInset:UIEdgeInsetsMake(0, 10, 0, 0)];
This code working in iOS 6.1 and below, but nothing happens in iOS 7.0.
Ragen asked 28/9, 2013 at 10:4
2
Solved
I want to creat an UIButton programmatically with the title under the imageView.
Size of the button : 170 * 120
Size of the imge : 50 * 50
Size of the title : depend of the text.
I know I'have to...
Driftage asked 7/10, 2012 at 16:40
2
Solved
When using auto-layout in iOS 6, a UIButton's intrinsic content size appears to include about 10px of padding around the button text. Is there any way to control this padding value? For example, I'...
Padauk asked 12/6, 2013 at 18:44
1
When you try and do a sizeThatFits on a UITextView, if you then set the height of said UITextView to the result, then it's too short! This answer:
UITextView Content Size too Short
Also seems to ...
Chops asked 18/3, 2015 at 12:50
0
I have a UIButton that is set up like this:
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
button.backgroundColor = [UIColor redColor];
[self addSubview:button];
[button setTitle...
Sinus asked 5/10, 2014 at 18:40
2
Solved
I'm trying to fit 3 lines of text in a textview of a certain size by using
[_messageField setContentInset:UIEdgeInsetsMake(-8, -6, 0,0)];
This works in iOS 6, but iOS 7 seems to be clipping cont...
Yellowbird asked 7/1, 2014 at 0:27
3
Solved
I'm making an app where I use UIEdgeInsetsMake for resizableImageWithCapInsets, but I don't understand how does it works exactly, UIEdgeInsetsMake has 4 arguments:
Top
Left
Bottom
Right
But the...
Mercurialize asked 2/10, 2011 at 17:31
2
Solved
I've searched high and low and can't seem to find an answer. The closest thing I've seen is here:
UITextView cursor below frame when changing frame
Sorry, no screenshots as I have (nearly) no repu...
Butanol asked 17/9, 2013 at 23:33
1
UITextView content Inset bottom value is not working in iOS 7.
By not working i mean if i keep typing in UITextView and cursor reaches at end then it hides and i cant see text which i am typing.
...
Giovannagiovanni asked 16/10, 2013 at 15:12
1
I'm trying to set a UITextView's contentInset property. When doing so, the UIEdgeInset's top variable works just fine. So [self.textView setContentInset: 'UIEdgeInsetsMake(50, 0, 0, 0)]; works.
B...
Landan asked 5/10, 2013 at 22:41
3
Solved
I'm trying to use UIEdgeInsetsMake to make set the background of my cell to a gradient. I've tried multiple things to get it to work, but no matter what I use, there's always an issue.
I simply ha...
Roundsman asked 7/7, 2013 at 16:32
1
© 2022 - 2024 — McMap. All rights reserved.