Top "Cgrect" questions

CGRect is a structure from the ApplicationServices framework used with Apple's OSX and iOS operating systems.

How can I increase the size of a CGRect by a certain percent value?

How can I increase the size of a CGRect by a certain percent value? Should I use some form of …

ios objective-c swift cgrect
change UITextView height programmatically with the text

i want change the UITextView programmatically with the amount of text i set, and i have a problem, if i …

iphone ios uitextview cgrect
Create CGRect with short way - swift

When I created CGRect in Objective-c and I didn't want to set each value, I created in this way: (CGRect){…

swift cgrect
Set background color for only part of UIView

I want the bottom (not quite half) of my UIView to be a different color than the top. I'm wondering …

ios uiview cgrect uibackgroundcolor
Can I adjust a CGRect with a UIEdgeInsets?

I've got a CGRect, and I'd like to adjust it with a UIEdgeInsets. It seems like perhaps there might be …

cgrect uiedgeinsets
CGRectZero vs CGRect.zeroRect?

Both seem to work the same in Swift. Which should we use? CGRectZero vs CGRect.zeroRect GRectMake(1, 1, 1, 1) vs CGRect(x: 1, …

swift struct cgrect cgrectmake
iOS Swift Setting View Frame Position Programmatically

I having two sub views inside scrollview. I need to position that both subviews programmatically. I did it correctly by …

ios swift uiscrollview uikit cgrect
Check if CGRect null in getter

I am trying to check if a CGRect is null in my property getter and if it is, load a …

ios ios6 null cgrect cgrectmake
How to resize UITextView while typing inside it?

I'm creating a comment section much like the one Facebook uses for it's messaging section in it's iOS app. I …

iphone ios uitextview cgrect
UIView height is not right on iPhone 5

I am migrating my apps over and on one I use a UIPickerView. In the viewDidLoad method I create the …

objective-c xcode uiview cgrect