zhuozhuo / ZHChat

An elegant messages UI library for iOS.
MIT License
127 stars 43 forks source link

Regarding outgoing messages direction #19

Open amandeepsingh-dev opened 7 years ago

amandeepsingh-dev commented 7 years ago

i am adding three types of messages showing in my chat screen one at my left side and rest of the 2 will be on right, so the third one i want on right side is showing on left as i give the same code which i provide on right message

 outgoingBubbleImageData = bubbleFactory.outgoingMessagesBubbleImageWithColor(UIColor(red:0.34, green:0.67, blue:0.18, alpha:1.0))  
     incomingBubbleImageData = bubbleFactory.incomingMessagesBubbleImageWithColor(UIColor(red:0.77, green:0.77, blue:0.77, alpha:1.0));
       outgoingBubbleImageData2 = bubbleFactory.outgoingMessagesBubbleImageWithColor(UIColor(red:0.17, green:0.24, blue:0.31, alpha:1.0))
zhuozhuo commented 7 years ago

You need to specify in the delegate:

- (nullable id<ZHCMessageBubbleImageDataSource>)tableView:(ZHCMessagesTableView *)tableView messageBubbleImageDataForCellAtIndexPath:(NSIndexPath *)indexPath
imran233113 commented 7 years ago

Hi Amandeep, you have added custom view for sending message instead of ZHCMessagesInputToolbar, i also tried by dragging view textfields and button in xib, but those are not getting visible, how you made it done. let me know please

amandeepsingh-dev commented 7 years ago

Actually i have added the view into MessageMoreView after that using constraints its showing like this.............

On Tue, Apr 25, 2017 at 10:37 AM, Imran Khan notifications@github.com wrote:

Hi Amandeep, you have added custom view for sending message instead of ZHCMessagesInputToolbar, i also tried by dragging view textfields and button in xib, but those are not getting visible, how you made it done. let me know please

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zhuozhuo/ZHChat/issues/19#issuecomment-296909128, or mute the thread https://github.com/notifications/unsubscribe-auth/AZtLCJ2EvlDGgxqoFhjCEFudMRnoayT6ks5rzX-RgaJpZM4M1LUQ .

imran233113 commented 7 years ago

Hi thanks, ZHCMessagesInputToolbar how to completely remove empty space if i hide it. empty space is not going . please update me