Is there a method to allow infinite scrolling of UIimageview when placed inside UIscollview while enabling it with apple pencil to write?Uiimageview inside uiscrollview position is not centerediOS UIImageView scaling image down produces aliased image on iPad 2UIScrollView with scaled UIImageView using autolayoutUIScrollView doesn't always scroll driving me crazyUIImageView not aligning as expected in superviewHow to Zoom UIScrollview Inner Imageview in iOS?UITextView inside UIScrollView with AutoLayoutUIImageView with contentMode AspectFit break Autolayout height in iOS7 but working properly in iOS8UIImageView missing images in Launch Screen on deviceWhen i add a UIImageView to a UIScrollView the correct scrolling for iPad does not occur

Did the US Climate Reference Network Show No New Warming Since 2005 in the US?

extract specific cheracters from each line

Pronounceable encrypted text

Could this estimate of the size and mass of the Chicxulub Impactor be accurate?

Why are UK MPs allowed to not vote (but it counts as a no)?

Why would image resources loaded from different origins triggering HTTP authentication dialogs be harmful?

In High Performance Liquid Chromatography, why are ratios of solvents used?

Why is a pressure canner needed when canning?

Undefined Hamiltonian for this particular Lagrangian

French equivalent of "my cup of tea"

Looking for a big fantasy novel about scholarly monks that sort of worship math?

SQL Always On COPY ONLY backups - what's the point if I cant restore the AG from these backups?

Examples where "thin + thin = nice and thick"

If I sell my PS4 game disc and buy a digital version, can I still access my saved game?

Male viewpoint in an erotic novel

What fraction of 2x2 USA call signs are vanity calls?

Professor refuses to write a recommendation letter to students who haven't written a research paper with him

How does the UK House of Commons think they can prolong the deadline of Brexit?

How do I use NEC PC-6001 .p6 or .cas files?

Notation: grace note played on the beat with a chord

Can you create water inside someone's mouth?

Global variables and information security

How do I make my fill-in-the-blank exercise more obvious?

What is the purpose of the rotating plate in front of the lock?



Is there a method to allow infinite scrolling of UIimageview when placed inside UIscollview while enabling it with apple pencil to write?


Uiimageview inside uiscrollview position is not centerediOS UIImageView scaling image down produces aliased image on iPad 2UIScrollView with scaled UIImageView using autolayoutUIScrollView doesn't always scroll driving me crazyUIImageView not aligning as expected in superviewHow to Zoom UIScrollview Inner Imageview in iOS?UITextView inside UIScrollView with AutoLayoutUIImageView with contentMode AspectFit break Autolayout height in iOS7 but working properly in iOS8UIImageView missing images in Launch Screen on deviceWhen i add a UIImageView to a UIScrollView the correct scrolling for iPad does not occur






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am making a dashboard which allows me to write using apple pencil on an iPad. The dashboard contains uiimageview on top of uiscrollview. I want to make this uiscrollview to scroll infinitely when a user scrolls down. My aim is to implement the functionality which is there in every note taking an application, enabled with apple pencil and Ipad.



  1. I tried setting up autolayout on uiscrollview and uiimageview but that works if you already have an image array or a defined image and then it scrolls down for all the images. But in my case, I do not have any dummy image to put in the background as it is the dashboard.


  2. I tried giving a huge height to the uiimageview but it is not an optimized solution. Also, that resulted in zooming in of strokes on uiimageview once I start writing with apple pencil on it.


  3. I tried creating a number of uiimageview(for example 5) and assigned them to "" with uiimageview size to be the size of the screen. So that I can loop over them and draw the apple pencil strokes on it. But then I am not able to identify which uiimageview should I use to draw stroke when writing with apple pencil.


Below are the things I tried for the respective points mentioned above.



  1. Setting up autolayout is simple as I followed it from multiple available blogs on the net.

  2. I have set up the height of uiimageiview from the storyboard.

  3. The last tried method is using the below code.

 func drawStroke(from fromPoint: CGPoint, to toPoint: CGPoint) 
UIGraphicsBeginImageContext(view.frame.size)
guard let context = UIGraphicsGetCurrentContext() else
return

tempImageView.image?.draw(in: view.bounds)

context.move(to: fromPoint)
context.addLine(to: toPoint)

context.setLineCap(.round)
context.setBlendMode(.normal)
context.setLineWidth(CGFloat(1.0))
context.setStrokeColor(color.cgColor)
context.strokePath()

tempImageView.image = UIGraphicsGetImageFromCurrentImageContext()
tempImageView.alpha = opacity
UIGraphicsEndImageContext()



The above code contains tempImageView and strokes are drawn on it but if I have five uiimageview how I decide which one is clicked and use that uiimageview in place of tempImageView.










share|improve this question






























    0















    I am making a dashboard which allows me to write using apple pencil on an iPad. The dashboard contains uiimageview on top of uiscrollview. I want to make this uiscrollview to scroll infinitely when a user scrolls down. My aim is to implement the functionality which is there in every note taking an application, enabled with apple pencil and Ipad.



    1. I tried setting up autolayout on uiscrollview and uiimageview but that works if you already have an image array or a defined image and then it scrolls down for all the images. But in my case, I do not have any dummy image to put in the background as it is the dashboard.


    2. I tried giving a huge height to the uiimageview but it is not an optimized solution. Also, that resulted in zooming in of strokes on uiimageview once I start writing with apple pencil on it.


    3. I tried creating a number of uiimageview(for example 5) and assigned them to "" with uiimageview size to be the size of the screen. So that I can loop over them and draw the apple pencil strokes on it. But then I am not able to identify which uiimageview should I use to draw stroke when writing with apple pencil.


    Below are the things I tried for the respective points mentioned above.



    1. Setting up autolayout is simple as I followed it from multiple available blogs on the net.

    2. I have set up the height of uiimageiview from the storyboard.

    3. The last tried method is using the below code.

     func drawStroke(from fromPoint: CGPoint, to toPoint: CGPoint) 
    UIGraphicsBeginImageContext(view.frame.size)
    guard let context = UIGraphicsGetCurrentContext() else
    return

    tempImageView.image?.draw(in: view.bounds)

    context.move(to: fromPoint)
    context.addLine(to: toPoint)

    context.setLineCap(.round)
    context.setBlendMode(.normal)
    context.setLineWidth(CGFloat(1.0))
    context.setStrokeColor(color.cgColor)
    context.strokePath()

    tempImageView.image = UIGraphicsGetImageFromCurrentImageContext()
    tempImageView.alpha = opacity
    UIGraphicsEndImageContext()



    The above code contains tempImageView and strokes are drawn on it but if I have five uiimageview how I decide which one is clicked and use that uiimageview in place of tempImageView.










    share|improve this question


























      0












      0








      0








      I am making a dashboard which allows me to write using apple pencil on an iPad. The dashboard contains uiimageview on top of uiscrollview. I want to make this uiscrollview to scroll infinitely when a user scrolls down. My aim is to implement the functionality which is there in every note taking an application, enabled with apple pencil and Ipad.



      1. I tried setting up autolayout on uiscrollview and uiimageview but that works if you already have an image array or a defined image and then it scrolls down for all the images. But in my case, I do not have any dummy image to put in the background as it is the dashboard.


      2. I tried giving a huge height to the uiimageview but it is not an optimized solution. Also, that resulted in zooming in of strokes on uiimageview once I start writing with apple pencil on it.


      3. I tried creating a number of uiimageview(for example 5) and assigned them to "" with uiimageview size to be the size of the screen. So that I can loop over them and draw the apple pencil strokes on it. But then I am not able to identify which uiimageview should I use to draw stroke when writing with apple pencil.


      Below are the things I tried for the respective points mentioned above.



      1. Setting up autolayout is simple as I followed it from multiple available blogs on the net.

      2. I have set up the height of uiimageiview from the storyboard.

      3. The last tried method is using the below code.

       func drawStroke(from fromPoint: CGPoint, to toPoint: CGPoint) 
      UIGraphicsBeginImageContext(view.frame.size)
      guard let context = UIGraphicsGetCurrentContext() else
      return

      tempImageView.image?.draw(in: view.bounds)

      context.move(to: fromPoint)
      context.addLine(to: toPoint)

      context.setLineCap(.round)
      context.setBlendMode(.normal)
      context.setLineWidth(CGFloat(1.0))
      context.setStrokeColor(color.cgColor)
      context.strokePath()

      tempImageView.image = UIGraphicsGetImageFromCurrentImageContext()
      tempImageView.alpha = opacity
      UIGraphicsEndImageContext()



      The above code contains tempImageView and strokes are drawn on it but if I have five uiimageview how I decide which one is clicked and use that uiimageview in place of tempImageView.










      share|improve this question














      I am making a dashboard which allows me to write using apple pencil on an iPad. The dashboard contains uiimageview on top of uiscrollview. I want to make this uiscrollview to scroll infinitely when a user scrolls down. My aim is to implement the functionality which is there in every note taking an application, enabled with apple pencil and Ipad.



      1. I tried setting up autolayout on uiscrollview and uiimageview but that works if you already have an image array or a defined image and then it scrolls down for all the images. But in my case, I do not have any dummy image to put in the background as it is the dashboard.


      2. I tried giving a huge height to the uiimageview but it is not an optimized solution. Also, that resulted in zooming in of strokes on uiimageview once I start writing with apple pencil on it.


      3. I tried creating a number of uiimageview(for example 5) and assigned them to "" with uiimageview size to be the size of the screen. So that I can loop over them and draw the apple pencil strokes on it. But then I am not able to identify which uiimageview should I use to draw stroke when writing with apple pencil.


      Below are the things I tried for the respective points mentioned above.



      1. Setting up autolayout is simple as I followed it from multiple available blogs on the net.

      2. I have set up the height of uiimageiview from the storyboard.

      3. The last tried method is using the below code.

       func drawStroke(from fromPoint: CGPoint, to toPoint: CGPoint) 
      UIGraphicsBeginImageContext(view.frame.size)
      guard let context = UIGraphicsGetCurrentContext() else
      return

      tempImageView.image?.draw(in: view.bounds)

      context.move(to: fromPoint)
      context.addLine(to: toPoint)

      context.setLineCap(.round)
      context.setBlendMode(.normal)
      context.setLineWidth(CGFloat(1.0))
      context.setStrokeColor(color.cgColor)
      context.strokePath()

      tempImageView.image = UIGraphicsGetImageFromCurrentImageContext()
      tempImageView.alpha = opacity
      UIGraphicsEndImageContext()



      The above code contains tempImageView and strokes are drawn on it but if I have five uiimageview how I decide which one is clicked and use that uiimageview in place of tempImageView.







      ios swift uiscrollview uiimageview apple-pencil






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 4:38









      Jio shreyak uppuJio shreyak uppu

      11 bronze badge




      11 bronze badge

























          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55390268%2fis-there-a-method-to-allow-infinite-scrolling-of-uiimageview-when-placed-inside%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55390268%2fis-there-a-method-to-allow-infinite-scrolling-of-uiimageview-when-placed-inside%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현