badoo / badoo/Chatto

how to show photoviewmessage with network image not local

Open
#267 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.6k
Forks
588
PR merge metrics
No merged PRs in 30d

Description

can anyone give me some idea to set photoviewmessage with network image(url) not local ?

`
let simg : UIImageView! = UIImageView();
simg.sd_setImage (with: URL(string: utf8url), placeholderImage: UIImage(named: "quesheng"))

let pmessage = self.createPhotoMessageModel(uid, image: (simg.image)!, size: (simg.image?.size)!, isIncoming: isIn , messageStatu: .success )
`
@diegosanchezr
![simulator-screen57](https://cloud.githubusercontent.com/assets/4464947/21285525/cfa63d52-c475-11e6-9bea-1ab92fa88e78.jpg)

the upcode just show holderimage

thanks

Contributor guide

Open the contributing guide

Research direction

Start at the createPhotoMessageModel call and the preceding sd_setImage usage shown in the issue, checking when the network image becomes available. Confirm how the photo message handles an asynchronously loaded image and verify that a network URL displays the intended image instead of the placeholder.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.