Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

FahadA

macrumors newbie
Original poster
Hello,

I'm trying to stroke an array of UIBezierPath as point gird on display. The spacing of the points would be relative to the size of the UIView , something like: (bounds.UIView / 10) to make the spacing 10 on each side

so basically I have two question:

1) how to stroke a single point using uibezierpath?

2) How to create an array of points and stroke them on a UIView.

Thanks!
 
There's tons of example programs that do this. Basically you just have an array of points and plot those points.

I remember one that had a scale for zooming. It would start with a given scale then zoom in/out from there.

I think Swift playgrounds would be a good place to learn about this.

https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=ios tutorial plotting points

Thanks for the reply Karl, I used the methods below to achieve what I want:

1) to stoke points, I just used the array of points as center for uibezierpath arc

2) to make the gird, I used a 2D array and populated it with a nested loop
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.