Top "Cgrect" questions

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

Simple way to change the position of UIView?

I change the position of a UIView with following codes without changing size of the view. CGRect f = aView.frame; …

ios layout uiview frame cgrect
IOS: verify if a point is inside a rect

Is there a way to verify if a CGPoint is inside a specific CGRect. An example would be: I'm dragging …

ios uiview collision-detection cgrect cgpoint
Get position of UIView in respect to its superview's superview

I have a UIView, in which I have arranged UIButtons. I want to find the positions of those UIButtons. I …

iphone ios uiview uibutton cgrect
iOS frame change one property (eg width)

This question was originally asked for the objective-c programming language. At the time of writing, swift didn't even exist yet. …

ios objective-c cgrect cgrectmake
Border around UITextView

How do you add a border around a UITextView (like a UITextField)? I want to allow users to type multiple …

text uitextfield uitextview border cgrect
"Expression is not assignable" -- Problem assigning float as sum of two other floats in Xcode?

In a piano app, I'm assigning the coordinates of the black keys. Here is the line of code causing the …

objective-c ios floating-point variable-assignment cgrect
Swift 4 Expression type '@value CGRect' is ambiguous without more context

I am trying to implement a animation for a rectangle to perform modal vertical swipe.However, when I try to …

swift cgrect
Changing CGRectMake (x,x,x,x) to a different location such as (y,y,y,y)

I have placed a button in my view using CGRectMake(x,x,x,x), x being the location and size …

ios user-interface orientation rotation cgrect
How to set UIView size to match parent without constraints programmatically

The problem sounds easy but it is making me crazy. I've created a white view in IB that's called iBag …

ios swift uiview cgrect
Comparing two CGRects

I needed to check wether the frame of my view is equal to a given CGRect. I tried doing that …

ios objective-c cocoa-touch comparison cgrect