uibezierpath Questions

3

I would like to clip a bezier path from an image. For some reason, the image remains the unclipped. And how do I position the path so it would be properly cut? extension UIImage { func imageByAp...
Badillo asked 16/4, 2018 at 8:47

2

Solved

I have created following image by UIBezierPath using this code //// Bezier Drawing let bezierPath = UIBezierPath() bezierPath.move(to: CGPoint(x: 360, y: 0)) bezierPath.addCurve(to: CGPoint(x...
Troyes asked 26/5, 2018 at 9:20

2

I am new in iOS. I am make a chat application. I am using UITableView for display the message chat (one cell - one message). In each cell, I will rounder the message in 2,3 or 4 corner (like Facebo...
Ascariasis asked 5/4, 2016 at 8:24

1

Solved

I'm trying to draw a circle that starts and ends at 12 o'clock counterclockwise. The issue I'm having is that the shape is not being drawn. Im' using init(arcCenter center: CGPoint, radius: CGFloat...
Huntley asked 8/10, 2020 at 23:35

3

Solved

I have a problem clipping a view using CAShapeLayer-UIBezierPath , I want to clip the content but I end up getting a stroke (frame) with that UIBezierPath , This is my code UIBezierPath *path2Pat...
Mertens asked 19/6, 2015 at 12:27

3

Solved

How can I update position of an already drawn CGPath/UIBezierPath on a view? I would like to move or change a path's position and then perhaps call the drawInRect method to just render the path aga...
Cyrilla asked 18/6, 2013 at 12:31

2

Solved

In questions like How to draw a smooth circle..., ...Draw Circle... and ...draw filled Circles the question and answer is very broad, contains lots of unnecessary steps and the methods used isn't a...
Furfural asked 10/2, 2015 at 21:49

8

I want to create different shapes. Below image is the one of example. Will you suggest me how to different shapes?
Aggrandize asked 24/3, 2015 at 8:24

3

Solved

I want to rounder my UIView with the value like that top-left-radius:20; bottom-right-radius:5; bottom-left-radius:5; and top-right-radius:10; //For rounder `UIRectCornerBottomLeft & UIRectCo...
Infundibulum asked 5/4, 2016 at 10:22

6

Solved

I have a draggable view that has a mask layer on it. The mask layer has a UIBezierPath on it which makes an area on the view see-through/transparent(the effect that i want). My end goal is to chang...
Rule asked 5/12, 2013 at 12:44

5

Solved

I managed to create the rounded corners, but I'm having trouble with the first rounded corner (lower right ) Question : Can I add an (addArcWithCenter) method before the ( moveToPoint ) method ?...
Kirst asked 3/7, 2015 at 21:57

1

I have achieved to flood fill on the close boundary with solid color. Now I am trying to fill close boundary with UIColor but it is pattern image color (Pattern color). I also try to get points of...
Cloakanddagger asked 6/2, 2020 at 6:58

2

Solved

I am attempting to create three shapes: a Circle, Square & Triangle. I have created the circle & square, but am unable to create the triangle. My biggest issue is to keep all three shapes i...
Recipient asked 1/4, 2017 at 21:39

7

Solved

I have a UIView added in code at run time. I want to draw a UIBezierPath in it, but does this means i have to override the drawRect for UIView? Or is there another way of drawing to it on the cus...
Content asked 23/1, 2014 at 15:4

3

Solved

I'm trying to add a custom shape to an imageView. Please check the below images. This is the required one: This is what I have done so far: I'm new to Core Graphics and I have done this so f...
Avatar asked 11/1, 2020 at 11:18

3

Solved

I want to crop UIView in semi circle shape Thanks in advance.
Lashonda asked 19/7, 2017 at 14:5

1

I just draw path using UIBezierPath and i would like to get each and every CGPoint that come under UIBezierPath. I try with following code func forEach( body: [![enter image description here][1]...
Habituate asked 22/11, 2019 at 7:7

3

Solved

I want to create a progress bar that has the form of an arc. The color of the progress bar has to change according to the values. I created an arc using UIBezierPath bezierPathWithArcCenter. I us...
Geophagy asked 17/12, 2013 at 9:41

2

Solved

I've been making a simple UIBezierPath animation with Swift. This path consists on creating a rounded rectangle with a colored border. The animation must be the drawing of the colored border. To do...
Compression asked 25/4, 2016 at 12:1

7

I have a UIBezierPath that I need to take a list of points from. In Qt there is a function called pointAtPercent that would fit my needs but I can't find anything equivalent in Objective-C. Does ...
Carbonyl asked 16/6, 2010 at 8:39

4

Solved

I'm looking for a way to programmatically create stars, sunburst, and other "spiky" effects using UIBezierPath. UIBezierPath *sunbeamsPath = [UIBezierPath bezierPath]; [sunbeamsPath moveToPoint:...
Sherburne asked 1/5, 2012 at 15:26

2

I have these 2 functions bellow in my class which extends CAShapeLayer, but I can't get an arc with rounded end caps every time I draw the path. It looks always like this picture: I already trie...
Metts asked 31/7, 2016 at 23:41

2

Solved

I am currently converting an MKPolyline to a BezierPath then a CAShapeLayer then adding the layer as a sublayer to a UIView. Currently struggling to ensure the path is not drawn outside the bounds ...
Felishafelita asked 7/2, 2017 at 9:13

2

Solved

Historic question. Pls note, it's now this simple: https://mcmap.net/q/467272/-smooth-rounded-corners-in-swift The unusual bottom corners of an iPhoneX are Apple's new (2017) "continuous corn...
Rois asked 11/3, 2018 at 12:29

1

I need to detect taps within a very specific area of my UI - a piano key that's at an angle, highlighted in blue here, but the way I have it currently set up, the detection is inaccurate: Since ...
Yorkist asked 3/5, 2019 at 4:20

© 2022 - 2024 — McMap. All rights reserved.