cgpoint Questions
5
Solved
I just started doing ios development with swift and I can't figure out how to draw a circle. I'm just trying to draw a circle, set it to a variable and display in on the screen so I can later use i...
Shipowner asked 4/11, 2014 at 4:27
7
Solved
How can I, given two different CGPoints, turn them into an CGRect?
Example:
CGPoint p1 = CGPointMake(0,10);
CGPoint p2 = CGPointMake(10,0);
How can I turn this into a CGRect?
Zeralda asked 11/11, 2011 at 22:41
3
Solved
I have a UILabel with some text, say "Hello World abcdefg" The label can have multiple lines, different font sizes etc.
Question: How do I find the coordinates of all letters "d" in this UILabel.
...
Jodee asked 7/7, 2010 at 0:6
2
Solved
I am trying to find the current position of an iPhone ImageView that is animating across the screen.
I create and animate the imageView like so
-(IBAction)button:(UIButton *)sender{
UIImageView ...
Flaunt asked 2/10, 2011 at 5:20
2
What's the easiest/fastest way to convert between vector_float2 and CGPoint* in Objective-C?
Does Apple provide any built-in functionality for this kind of type conversion? I noticed in 2-3 places...
Eupheemia asked 10/7, 2015 at 14:35
7
Solved
In CABasicAnimation.fromValue I want to convert a CGPoint to a "class" so I used NSValue valueWithPoint but in device mode or simulator one is not working...
need to use NSMakePoint or CGPointMake ...
Hermilahermina asked 21/4, 2009 at 14:52
3
Solved
So my question is: After a website(any websites on the www) has been loaded up in my iOS webview app how to make the app Programmatically Scroll vertically to any of the contents thats out of view?...
Gnotobiotics asked 2/8, 2018 at 17:27
3
Solved
Currently there is a scrollview (whole screen) that sits behind a uiview (bottom portion of the screen). I"m trying to check whether or not a label on the scroll is covered by the uiview (this happ...
Honeymoon asked 26/9, 2017 at 22:42
8
Solved
Is there a way to verify if a CGPoint is inside a specific CGRect?
An example would be:
I'm dragging a UIImageView and I want to verify if its central point CGPoint is inside another UIImageView.
Paddle asked 7/11, 2011 at 14:19
3
Solved
I want to create a custom CGPoint subclass to add some proprieties, but I get this error:
Inheritance from non-protocol, non-class type 'CGPoint'
I have no idea why this is not possible. My cl...
5
Solved
5
Solved
As my question title says how can I convert CGPoint into NSValues so I can store then Into array In swift.
In objective-C we can do it like this:
// CGPoint converted to NSValue
CGPoint point =...
2
Solved
Okay so I want to rotate CGPoint(A) 50 degrees around CGPoint(B) is there a good way to do that?
CGPoint(A) = CGPoint(x: 50, y: 100)
CGPoint(B) = CGPoint(x: 50, y: 0)
Here's what I want to do:
...
6
Solved
I'm working on a graphing calculator app for the iPad, and I wanted to add a feature where a user can tap an area in the graph view to make a text box pop up displaying the coordinate of the point ...
6
Solved
I want to store my CGPoint to the NSMutable Array, so , I have method like this:
[self.points addObject:CGPointMake(x, y)];
But I got the error, it said that :
Incompatible type for argument ...
Karttikeya asked 21/4, 2010 at 15:52
0
I am using functionality of erasing image and my code is like below. You can see Video HERE. Here current_sticker_img is my Imageview
NOTE: I am also using Pan Gesture for zooming image
//MARK:...
Polyandrous asked 31/3, 2017 at 10:4
2
In the above image ,we can see point which are drawn on image ,by some openCV algorithm.
I want to draw a UIView point on those points ,so that user can crop it.
I am not getting how will I acc...
Jerkin asked 1/6, 2015 at 10:34
4
Solved
I have four UIViews on a UIScrollView (screen divided into quartiles)
On the quartiles, I have a few objects (UIImageViews), on each quartile.
When the user taps the screen, I want to find the cl...
4
Solved
I need to create a frame for a UIImageView from a varying collection of CGSize and CGPoint, both values will always be different depending on user's choices. So how can I make a CGRect form a CGPoi...
Pape asked 21/8, 2012 at 21:57
1
Solved
That greycolour is UIImageView and the White colour font is Image.
That image Placed inside UIImageView.
I like to colour only inside the font ,not an whole UIImageview for that i am going to f...
Terribly asked 12/1, 2016 at 6:29
3
Struggling to make my app work on both the iPhone 5 and the smaller iPhone's prior. Would be happy to require iOS6 and use Autolayout because that works great.
However, the app has 4 buttons that ...
Wanettawanfried asked 14/12, 2012 at 17:32
5
Solved
How to use CGPointMake in Swift? Is there an equivalent for it? I am getting an error:
Use of unresolved identifier 'CGPointMake'
Basically, I am trying to assign a position to a Sprite Kit no...
Xhosa asked 5/6, 2014 at 21:23
2
I've tried to rotate my rectangle, but it does not work properly.
Here is part of my code, I found it in another post:
#define DEGREES_TO_RADIANS(x) (M_PI * x / 180.0)
-(void)drawRect:(NSRect)rec...
Caesaria asked 10/9, 2013 at 4:51
2
I have recently been introduced to swift.
A question, when to use CGPoint and when shall I use CGPointMake ?
I have interchanged these two statements and they both returned the same result
self...
1
I have a UIBezierPath which i defined, and i can access the relevant points defined.
Now, i want to extract all the points in the line, not just the points i defined.
I saw these following questi...
Binding asked 29/1, 2014 at 12:48
1 Next >
© 2022 - 2024 — McMap. All rights reserved.