This commit is contained in:
Jeena Paradies 2012-11-03 05:34:15 +01:00
parent 136680e03a
commit 39010eff6b
3 changed files with 9 additions and 4 deletions

View file

@ -215,10 +215,12 @@
- (IBAction)sendTweet:(id)sender {
TweetModel *tweet = (TweetModel *)[sender object];
NSString *text = [[tweet.text stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""] stringByReplacingOccurrencesOfString:@"\\" withString:@"\\\\"];
NSString *func = [NSString stringWithFormat:@"tentia_instance.sendNewMessage(\"%@\", \"%@\", \"%@\")",
[tweet.text stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""],
text,
tweet.inReplyTostatusId,
tweet.inReplyToEntity];
NSLog(@"%@", func);
[timelineView stringByEvaluatingJavaScriptFromString:func];
}