Chat app - using Swift3, Alamofire, mySQL, php API -
can me? swift newbie here. need develop chatting function in app.. use ‘chatto’ not understand library. db mysql , communicate using alamofire. have php api communicates mysql. includes user’s chat information.
if ever used chatto or there better way create chat app? ( chatto link : https://github.com/badoo/chatto )
1. if using chatto
( chatto essue : https://github.com/badoo/chatto/issues/349 ) didn't understant how using it.. i've followed chattoapp example, not understand how fakedatasource, fakemessagefactory, etc. work.
i using swift3, alamofire , mysql.
i did
func tableview(_ tableview: uitableview, didselectrowat indexpath: indexpath) { self.performsegue(withidentifier: "chatsegue", sender: self) }
so connect chatviewcontroller tableview. if select tablecell, view chatto interface.
and.. can't printed text. didn't understand https://github.com/badoo/chatto/wiki/data-source . if have 3 array
var username = [string?]() var messages = [string?]() var updated_at = [string?]()
how insert these items datasource? or have use chatto fot case?
i did not understand it, pasted example code in way erased error message..
2. if there better way.
please let me know something! don't know have do.
thank you
Comments
Post a Comment