Top "Cgpoint" questions

CGPoint is a structure from Apple's Core Graphics framework.

CGPoint relative to view

Consider a screen point (CGPoint) and a view (UIView), which is somewhere inside the view hierarchy (it can be a …

iphone ios uiview cgpoint
CGpoint Vs CGPointMake

I have recently been introduced to swift. A question, when to use CGPoint and when shall I use CGPointMake ? I …

swift cgpoint
Accessing the current position of UIView during animation

I am trying to find the current position of an iPhone ImageView that is animating across the screen. I create …

iphone objective-c ios animation cgpoint
How to convert CGPoint in NSValue in swift?

As my question title says how can I convert CGPoint into NSValues so I can store then Into array In …

ios swift cgpoint nsvalue
Placing UILabel in the center of screen

I have a UILabel which I want to be displayed at the center of screen regardless of which iPhone it …

swift sprite-kit uilabel skscene cgpoint
Arithmetic on two CGPoints with + or - operators

In Objective-C I'm starting to work with CGPoints and when I need to add two of them the way I'm …

objective-c cocoa-touch math cgpoint
How do I properly observe the contentOffset property of my scrollView subclass?

In my iOS app I am observing changes to the contentOffset property of my scrollView subclass. My observer handler looks …

ios uiscrollview key-value-observing cgpoint
Turn two CGPoints into a CGRect

How can I, given two different CGPoints, turn them into an CGRect? Example: CGPoint p1 = CGPointMake(0,10); CGPoint p2 = CGPointMake(10,0); How …

ios iphone core-graphics cgrect cgpoint
Convert CLLocation or CLLocationCoordinate2D to CGPoint

How can I convert CLLocation or CLLocationCoordinate2D to CGPoint. I have seen CGPoint point = [mapView convertCoordinate:myCoordinates toPointToView:self.…

iphone ios cllocation cgpoint
Problems with converting a CGPoint to a string

I have been having problems with converting a CGPoint to a string. I have tried various methods, but this seems …

cocoa-touch string nsstring cgpoint