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

Call setImageInputs function again, and the images are not showing #21

Closed
dasoga opened this issue Mar 16, 2016 · 1 comment
Closed

Comments

@dasoga
Copy link

dasoga commented Mar 16, 2016

I set the images on viewDidLoad() function. But in other function I want to replace those images, when I do this, the images are not showing...
Something like this:

    override func viewDidLoad() {
        super.viewDidLoad()
        slideshow.setImageInputs([ImageSource(imageString: "img1")!, ImageSource(imageString: "img2")!, ImageSource(imageString: "img3")!, ImageSource(imageString: "img4")!])
}
  @IBAction func changePhoto(){
        slideshow.setImageInputs([AlamofireSource(urlString: "https://thumbs.dreamstime.com/z/flysch-rocks-barrika-beach-sunset-58426273.jpg")!, AlamofireSource(urlString: "https://thumbs.dreamstime.com/z/man-surfboard-beautiful-foggy-beach-boy-running-golden-sunrise-daytona-florida-58532550.jpg")!, AlamofireSource(urlString: "https://thumbs.dreamstime.com/z/woman-putting-mask-her-face-black-cloak-sitting-ground-58291716.jpg")!])
    }
@zvonicek
Copy link
Owner

Hi @dasoga, thank you for the report. I'm marking it as a duplicate with #17 so please follow up on the status there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants