Преглед изворни кода

Merge pull request #1735 from tiagomartinho/patch-1

Update README.md
Bogdan Poplauschi пре 9 година
родитељ
комит
ccf7620b3f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -81,7 +81,7 @@ Objective-C:
 ```swift
 Swift:
 
-imageView.sd_setImageWithURL(NSURL(string: "http://www.domain.com/path/to/image.jpg"), placeholderImage:UIImage(imageNamed:"placeholder.png"))
+imageView.sd_setImage(with: URL(string: "http://www.domain.com/path/to/image.jpg"), placeholderImage: UIImage(named: "placeholder.png"))
 ```
 
 - For details about how to use the library and clear examples, see [The detailed How to use](Docs/HowToUse.md)