Skip to content

DownloadButton usage in Swift with UITableView #6

@smazokha

Description

@smazokha

Just added DownloadButton to my project. Have to say, it is great. Thank you, Pavel, for this awesome soluton! But still there are some things, I'd like to ask:

  1. How can I access UIImage+PKDownloadButton in Swift? When I try customising the button as in the example (calling UIImage initialiser with method buttonBackgroundWithColor), that initialiser in unaccessible. (I add DownloadButton as accessoryView to my UITableViewCell in cellForRowAtIndex method)
  2. In UITableViewController class, when I implement PKDownloadButtonDelegate, downloadButtonTapped method is never called when I tap the button. (I have a button in each row of my tableView). How should I properly implement it?
  3. When I programmatically change the DownloadButton state to .Downloading and the circle comes out, how can this circle be moved to the right side of the button corner? (Now it is on the left side)
  4. Maybe this one is not about this library, but still, is it possible to implement AppStore-like cloud button with the same functions? For example, when I tap the button and the Downloading circle comes out?
  5. How can I localise DownloadButton?

Sorry for the very long text, but I think this would be useful for many beginnes, like me

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions