Questions tagged [uibezierpath]

The UIBezierPath class lets you define a path consisting of straight and curved line segments and render that path in your custom views.

The UIBezierPath class lets you define a path consisting of straight and curved line segments and render that path in your custom views. You use this class initially to specify just the geometry for your path. Paths can define simple shapes such as rectangles, ovals, and arcs or they can define complex polygons that incorporate a mixture of straight and curved line segments. After defining the shape, you can use additional methods of this class to render the path in the current drawing context.

Its counterpart in OS X is .

Resources:

1777 questions
0
votes
1 answer

Swift : Create region to UIPanGesture

I have this design here : https://i.stack.imgur.com/Y8gRp.jpg I would like to allocate the left half of the screen(splitting vertically) to panning up and down for the blue bars and allocate the right half of the screen(splitting vertically) to…
Nadal Alyafaie
  • 329
  • 1
  • 3
  • 12
0
votes
1 answer

pointInside:withEvent inside uibezierpath (overlapping area between two views)

no matter how much I tried I couldn't have access (Handle scrolling/Touchevents) to the overlapping area (right triangle) between two square shaped views A and B (A in on top of B)as shown in this image I want the right part (triangle B) with is…
user5695306
0
votes
0 answers

How to use the CAShapeLayer to mask the UIView with a bezier path?

I have a UIView with an image drawn in it. And I drawed a bezier path on the uiview, and I tried to mask the uiview according to the bezier path, it works but the mask get shifted down all the time. Here are the images: And I drew a bezier path on…
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
0
votes
2 answers

How to create a view like UIPopover using UIBezierPaths in iPhone?

I have an app in which there are so many popover and every popover so many objects like UIButtons, UILable,UITableView. Now I want to create view like popover using UIBezierpathswith upside arrow. How can I do that in a UIView? don't want to any…
Maulik shah
  • 1,664
  • 1
  • 19
  • 45
0
votes
1 answer

Overlapping concave SKShapeNodes

In my application I have two concave SKShapeNodes, nodeA and nodeB, nodeA is stationary on the screen while nodeB is able to be dragged around the screen by the users finger. nodeA needs to be able to detect if nodeB is overlapping it. First I tried…
BCRwar3
  • 45
  • 1
  • 11
0
votes
1 answer

Bezier path with line width on one side?

I have two images, and I want to have the left one clipped so it looks like they are placed with a diagonal line in between. Like so: I'm able to create the path and clip, but cannot figure out how to set the line width for just the right…
JDM
  • 883
  • 1
  • 8
  • 20
0
votes
1 answer

UIBezierpath Draw Loading Circle

I need to draw the loading graphic like the following image in iOS Using UIBezierPath. Can anyone suggest to me how to do this? I need that loader graphic like a "svprogresshud"
0
votes
1 answer

zRotation is not coordinated with movement

I'm trying to make a version of the game Vortex(https://www.youtube.com/watch?v=LPN-vdeEsiE) of the iPod Classic for the iPhone with SpriteKit. I have this code so that the platform is orbiting around the center: let dx = base!.position.x -…
0
votes
1 answer

Change color of UIBezierPath in Swift

I am working on a form of design project. In this project, you select an object and can change the color or size, or move. Started a prototype of the app. I will use UIBezierPath to draw the ways of the shapes, and will use CAShapeLayer to add to a…
James
  • 1,167
  • 1
  • 13
  • 37
0
votes
1 answer

Animating on some part of UIBezier path

I have two UIBezierPath... First path shows the total path from to and fro destination and the second path is a copy of the first path but that copy should be a percentage of the first path which I am unable to do. Basically I would like the plane…
Sana
  • 9,895
  • 15
  • 59
  • 87
0
votes
0 answers

Drawing a line with more than one color iOS

I am drawing a line which color is black. But i want to be more than one color in this line. For example; 40% yellow, 30% black, 30% blue. Is there any way to do that? Thanks for your answer and interest. Here is my code; -…
Kirdok
  • 1,904
  • 2
  • 22
  • 27
0
votes
1 answer

Hexagon with different colors iOS

I am trying to make a hexagon progress with different colors. I created a hexagon shape but i couldn't give different colors for each lines. Is there any way to do that? Also can i change first 2 line colors after passed these are? Here is my…
Kirdok
  • 1,904
  • 2
  • 22
  • 27
0
votes
1 answer

How to draw a text on a UIBezierPath?

I don't know if that is possible. My researches so far, did not give any hints. I have a UIBezierPath and like to draw a text alined it, so the text is curved. I this possible ? Any hints where to start ?
mcfly soft
  • 11,289
  • 26
  • 98
  • 202
0
votes
2 answers

UIBezierPath Percent of Length at Point

I'm building an app that features some graphical manipulation. I'm storing shapes as UIBezierPaths, and I want to allow users to touch points along the line to create saved locations. Using the wonderful answer to this question, and more…
Aaron Vegh
  • 5,217
  • 7
  • 48
  • 75
0
votes
1 answer

Objective C - how to know if point is inside a quarter of circle?

I drew a quarter of a circle inside a rectangle. Rectangle: UIView *Rectangle = [[UIView alloc] initWithFrame:CGRectMake(0,0,[[UIScreen mainScreen] bounds].size.width,[[UIScreen mainScreen] bounds].size.height-292)]; Rectangle.backgroundColor…
samouray
  • 578
  • 1
  • 11
  • 26
1 2 3
99
100