Top "Cgrectmake" questions

CGRectMake is used in iOS, it returns a rectangle with the specified coordinate and size values.

Update CGRectMake to CGRect in Swift 3 Automatically

Now that CGRectMake , CGPointMake, CGSizeMake, etc. has been removed in Swift 3.0, is there any way to automatically update all initializations …

ios swift swift3 cgrectmake
How do I get the current x and y position so that I can use GCRectMake?

I have this code inside an animation: image.frame = CGRectMake(x: x, y: y, width, height) I need to get …

ios swift cgrectmake
How do I create a CGRect from a CGPoint and CGSize?

I need to create a frame for a UIImageView from a varying collection of CGSize and CGPoint, both values will …

ios objective-c quartz-graphics cgpoint cgrectmake
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
CGRect positioning according to center point

I'm trying to create multiple views for an iPad app. First I created a menu view and then a sub-menu …

ios uiview cgrectmake
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
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
UIScreen mainScreen bounds.size.height always 1024

Why would [UIScreen mainScreen].bounds.size.height always return 1024 no matter what layout mode the iPad app is in? I …

objective-c ios cgrectmake uiscreen
Define CGRectmake with CGPoint and/or CGSize

This is a very simple question of which i can't seem to find the answer. How to do this : CGRectMake(1, 3, …

objective-c syntax cgrect cgrectmake
How to initialize properties that depend on each other

I want a picture to move to the bottom. If I press a button the pic should move down by 1. …

xcode swift frame cgrectmake