iOS 聊天氣泡

方法一:使用背景圖片拉伸,這裏採用一種相對簡單的方式。 需要:背景圖片。 自定義一個view,在上面添加一個imageView,一個label。然後在獲得label的內容時候調整label尺寸,同時適配imageView的尺寸。然後拉伸背景圖片填充iamgeView。代碼如下: #import "PopView.h" @interface PopView () @property (nonatom
相關文章
相關標籤/搜索