![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
番茄炒蛋125
这个作者很懒,什么都没留下…
展开
-
获取字符串或汉字的首字母
获取字符串或汉字的首字母原创 2017-08-21 09:50:25 · 394 阅读 · 0 评论 -
ios 自定义字体
最近项目中用到自定义字体,根据找的资料,做个总结1、下载ttf格式字体文件英文字体http://www.dafont.com/这里是ios支持的字体包http://www.17ziti.com/info/74873.html2、下载的ttf或otf文件导入到项目中导入时要选择Add to targets(如果没有选,可以到 targets-Bui原创 2017-06-13 16:19:19 · 361 阅读 · 0 评论 -
ios 毛玻璃效果
毛玻璃效果使用原创 2017-09-13 15:16:34 · 320 阅读 · 0 评论 -
iOS 多语言切换
xcode内多语言切换,操作方式1、项目中新建Localizable.strings文件创建方式:新建com+N --> Resource --> Strings File 2、允许使用国际化语言,添加所需语言3、语言添加成功后,点击Localizable.strings文件,在右侧可以看到Localization列表是已添加的语言,对号是项目中要使用的语言原创 2017-10-11 11:09:06 · 531 阅读 · 0 评论 -
ios 推送语音播报
分享一个类似支付宝收款提醒的语音播报,我这里推送配的是个推,集成配置都可以参照个推文档中心,文档介绍步骤都很详细。1、打开推送Capabilities---Push Notifications2、开启远程推送Capabilities---Background Modes---Remote Notifications3、新建UNNotification Service E原创 2017-12-14 16:50:21 · 564 阅读 · 0 评论 -
iOS 图片添加文字水印
// 图片添加文字水印+ (UIImage *)WaterImageWithImage:(UIImage *)image{ //1.开启上下文 UIGraphicsBeginImageContextWithOptions(image.size, NO, 0); //2.绘制图片 [image drawInRect:CGRectMake(0, 0, image.si原创 2017-12-15 14:08:22 · 970 阅读 · 0 评论 -
iOS常用小功能
1、获取控件相对位置 UIWindow * window=[[[UIApplication sharedApplication] delegate] window]; CGRect rect=[_topView convertRect:_topView.bounds toView:window]; CGFloat viewY = rect.origin.y;2、页面返回指定控...原创 2018-02-09 10:22:25 · 231 阅读 · 0 评论 -
iOS Xcode9.3 DDXMLPrivate.m文件“xmlKeepBlanksDefault”报错问题
一、Xcode9.3报错 1、Declaration of 'xmlKeepBlanksDefault' must be imported from module 'libxml2.parser' before it is required2、Implicit declaration of function 'xmlKeepBlanksDefault' is invalid in C99二、解决办...原创 2018-05-17 21:44:53 · 836 阅读 · 0 评论