stroke a grid of points

Discussion in 'iOS Programming' started by FahadA, Nov 10, 2016.

  1. FahadA macrumors newbie

    FahadA

    Joined:
    Nov 10, 2015
    #1
    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!
     
  2. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #2
  3. FahadA thread starter macrumors newbie

    FahadA

    Joined:
    Nov 10, 2015
    #3
    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
     

Share This Page