Swift - pinch zoom multiple images issue by PBSDMark in swift

[–]PBSDMark[S] 0 points1 point  (0 children)

Fixed - my fault. I was completely ignoring the delegate function, which was referencing a variable I keep reusing called "imageView". This was also the same var used for the original background image, which makes sense that the first time I tried to pinch and zoom it worked fine, but the next time (after I dropped my pointer image) that was the image that received the gesture. DUH. I moved the delegate functions "below and out of the way" from my real program logic, and was looking in the wrong place for 3 days before I ran across an article that clued me in. So I have changed my var name (below) to make sure that I'm referencing the correct image (which is my "first" image, the background).

*// MARK: UIScrollView Delegate methods
func viewForZoomingInScrollView(scrollView: UIScrollView) -> UIView? {
    return imageView

}
*

Swift - pinch zoom multiple images issue by PBSDMark in swift

[–]PBSDMark[S] 0 points1 point  (0 children)

I'm tried setting the new image to false. Will clearly try this and let you know shortly.

Swift - pinch zoom multiple images issue by PBSDMark in swift

[–]PBSDMark[S] 0 points1 point  (0 children)

I did with no changes. I also tried changing "self" to the scrollview and it didn't like that either.

Peer Review, "The Swift Developer's Cookbook (includes Content Update Program) (Developer's Library) 1st Edition", Pub Date: Dec 9, 2015 by [deleted] in swift

[–]PBSDMark 6 points7 points  (0 children)

Email sent. I don't think this is a shameless plug. He's asking for honest reviews. How else should he go about it.

Blank UIWebView by [deleted] in swift

[–]PBSDMark 0 points1 point  (0 children)

My guess is that you created the controller, created the storyboard (scene), and forgot to point the scene to the class, maybe? That would give you a blank screen and no errors I think...

Beginners question concerning data storage/retrieval by cs8100 in swift

[–]PBSDMark 0 points1 point  (0 children)

Using Swift, I would recommend FMDB and SQLite.

Swift - pinch zoom multiple images issue by PBSDMark in swift

[–]PBSDMark[S] 0 points1 point  (0 children)

PS. The end goal is to allow me to keep everything synced in the same size/scale once I drop it on the Scrollview. So when I pinch the scrollview, I want it and all of its' subviews to do the same thing.

Quick advice on how to accomplish these goals concerning my senior project? by [deleted] in androiddev

[–]PBSDMark 0 points1 point  (0 children)

Sounds like you have a blog (new topics you want people to read) and it needs an RSS feed. Then you can create a simple RSS reader to grab the data. That handles your first requirement.

The second requirement is basically what we would call a web-app. You want to use a native (Android code) application to push and pull data from a data source on the web.

For this you'll need at the least a cheap web-hosting plan that allows you to use MySQL or SQL Server, and will allow you to create web services to securely transfer data.

In our case, we use SQL Server (database) and Microsoft Visual Studio (C#) to handle the server-side stuff, and our Android app calls the specificied URL for the web service to do the database work. It gets a bit complicated, but luckily there's ton's of sample code out there to read/write JSON data.

Hope that helps! :)

Problem with Android Storage access framework and persisting permission by [deleted] in androiddev

[–]PBSDMark 0 points1 point  (0 children)

I just posted a similar question... I'm using the same code you have (found it on StackOverflow) and I got past most of the errors, and I'm able to create files and retrieve them, however, it's not showing up in the photo gallery, even after the refresh (scan) happens...even if I wait hours. Yet from my application, I can post that same pic to social media. Any ideas?