IOS--表情粗显示
发布日期:2021-11-21 04:41:08
浏览次数:32
分类:技术文章
本文共 988 字,大约阅读时间需要 3 分钟。
//// EmotionView.m// WXWeibo//// Created by apple on 14-6-3.// Copyright (c) 2014年 com.tyust. All rights reserved.//#import "EmotionView.h"#define item_weidth 42#define item_height 45@implementation EmotionView{ NSMutableArray *pages;}- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { [self _init]; self.backgroundColor = [UIColor clearColor]; } return self;}-(void)_init{ NSString *emotionPlistPath = [[NSBundle mainBundle]pathForResource:@"emoticons" ofType:@"plist"]; NSArray *array = [[NSArray alloc]initWithContentsOfFile:emotionPlistPath]; int pageCout = array.count/28; pages = [[NSMutableArray alloc]initWithCapacity:pageCout]; NSMutableArray *emotions = nil; for(int i = 0;i%d",pageCout); self.width = (pageCout+1) * 320; self.height = 4 * item_height;}-(void)drawRect:(CGRect)rect{ int colum = 0,row=0; for(int i=0;i
转载地址:https://blog.csdn.net/xiaoji94shen/article/details/28245731 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年03月22日 00时43分51秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
点击其他界面隐藏输入法
2019-04-26
Object.defineProperty()
2019-04-26
js对象原型与in操作符
2019-04-26
NodeJS、NPM安装配置步骤(windows版本)
2019-04-26
select框既可以手输入也可以选择
2019-04-26
JDK安装及环境变量的配置
2019-04-26
js的键盘事件
2019-04-26
js控制复选框选中
2019-04-26
下载淘宝镜像命令
2019-04-26
nodejs代办事项程序
2019-04-26
js判断对象不为空对象
2019-04-26
codeblocks中文编码问题
2019-04-26
算法(1)FFT 傅里叶变化算法 c语言
2019-04-26
cc2541 计算霍尔-频率
2019-04-26
ble原理(2)蓝牙5.0文档概述
2019-04-26
ble原理(3) 广播类型
2019-04-26
c语言库函数
2019-04-26
算法(2) uart 分包-j解包函数 系列代码
2021-06-29
寻找最大和最小数值
2021-06-29
易错点
2021-06-29