【问题标题】:how to implement chat dialog box by programming?如何通过编程实现聊天对话框?
【发布时间】:2011-11-09 14:03:24
【问题描述】:

我正在为 iphone 实现聊天应用程序。

请检查附件图片。您可以在带有向下曲线箭头的棕色层中看到文本消息。我想通过编程实现棕色向下曲线箭头框。 我在很多聊天应用程序中都看到过。

那么你能给我一些关于这个查询的想法吗?

提前致谢。

【问题讨论】:

    标签: iphone objective-c ios core-graphics


    【解决方案1】:

    您可以使用两条贝塞尔曲线 (http://en.wikipedia.org/wiki/B%C3%A9zier_curve) CGPathAddCurveToPoint 函数。检查参考以获取更多信息:http://developer.apple.com/library/mac/#documentation/graphicsimaging/Reference/CGPath/Reference/reference.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-09
      • 1970-01-01
      • 2011-06-01
      • 2013-10-18
      • 2018-04-07
      相关资源
      最近更新 更多