Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports changing tile size from default 256x256 #49

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Supports changing tile size from default 256x256 #49

wants to merge 4 commits into from

Conversation

Joohansson
Copy link
Contributor

Will allow changing tileSize from swift code and also set correct size in JCTiledLayer (or tiles will have wrong resolution on the phone).
Tested with 512x512 tiles

Use like this:
let scrollView = JCTiledScrollView(frame: self.view.frame, contentSize: imageSize)
scrollView.tiledView.tileSize = CGSize(width: CGFloat(256.0), height: CGFloat(256.0))

Will allow changing tileSize from swift code and also set correct size in JCTiledLayer.
Tested with 512x512 tiles

Use like this:
let scrollView = JCTiledScrollView(frame: self.view.frame, contentSize: imageSize)
scrollView.tiledView.tileSize = CGSize(width: CGFloat(256.0), height: CGFloat(256.0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant