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;
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.
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.
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.
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.
- Setting up autolayout is simple as I followed it from multiple available blogs on the net.
- I have set up the height of uiimageiview from the storyboard.
- 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
add a comment |
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.
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.
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.
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.
- Setting up autolayout is simple as I followed it from multiple available blogs on the net.
- I have set up the height of uiimageiview from the storyboard.
- 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
add a comment |
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.
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.
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.
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.
- Setting up autolayout is simple as I followed it from multiple available blogs on the net.
- I have set up the height of uiimageiview from the storyboard.
- 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
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.
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.
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.
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.
- Setting up autolayout is simple as I followed it from multiple available blogs on the net.
- I have set up the height of uiimageiview from the storyboard.
- 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
ios swift uiscrollview uiimageview apple-pencil
asked Mar 28 at 4:38
Jio shreyak uppuJio shreyak uppu
11 bronze badge
11 bronze badge
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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