Date
Oct. 18th, 2024
 
2024年 9月 16日

Home #54

Today is the A Memorial Day
A Developer's Faux Pas
Oct
14
iOS 小知识: URL 脱义
Published 12:10 Oct 14, 2014 by @ezra.
#Programming# 介绍一些 iOS 小知识。 URL 脱义 适用于 URL 中包含中文、其他 URL 或 URL 关键字的情况: NSString *newURL = (NSString *)CFBridgingRe...
Oct
14
iOS 小知识: 为 UIView 设置图片
Published 12:10 Oct 14, 2014 by @ezra.
#Programming# 介绍一些 iOS 小知识。 给 UIView 设置图片 方法一 UIImage *image = [UIImage imageNamed:@"<#Your Image#>&q...
Oct
14
iOS 小知识: 去除 NSString 两端空白与空行
Published 12:10 Oct 14, 2014 by @ezra.
#Programming# 介绍一些 iOS 小知识。 去除 NSString 两端空白与空行" 去除两端空格 [string stringByTrimmingCharactersInSet:[NSCharacterSet ...
Oct
14
iOS 小知识: 忽略编译器警告
Published 12:10 Oct 14, 2014 by @ezra.
#Programming# 介绍一些 iOS 小知识。 忽略警告 废弃 #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdepre...
Oct
14
iOS 小知识: 模拟 Home 键点击
Published 12:10 Oct 14, 2014 by @ezra.
#Programming# 介绍一些 iOS 小知识。 模拟 Home 键单击 [[UIApplication sharedApplication] performSelector:@selector(suspend)]; 注意...
Oct
14
iOS 小知识: 汉字转拼音
Published 12:10 Oct 14, 2014 by @ezra.
#Programming# 介绍一些 iOS 小知识。 汉字转拼音 @interface NSString (MandarinLatin) - (NSString *)stringByReplacingMandarinToLat...
Oct
14
iOS 小知识: 生成随机浮点数
Published 12:10 Oct 14, 2014 by @ezra.
#Programming# 介绍一些 iOS 小知识。 生成随机浮点数 定义宏 #define ARC4RANDOM_MAX 0x100000000。 使用 arc4random() 来获取 0 ~ 100 的浮点数了: dou...
Oct
14
iOS 小知识: 获取网页内容高度
Published 12:10 Oct 14, 2014 by @ezra.
#Programming# 介绍一些 iOS 小知识。 获取 Web 页面内容高度 利用 JavaScript 来实现,一般写在 UIWebView 代理中。 - (void)webViewDidFinishLoad:(UIWe...
Oct
14
iOS 小知识: 防止锁屏
Published 12:10 Oct 14, 2014 by @ezra.
#Programming# 介绍一些 iOS 小知识。 防止锁屏 [[UIApplication sharedApplication] setIdleTimerDisabled:YES];...
Oct
09
iOS apps and the Open Source they use
Published 12:10 Oct 09, 2014 by @ezra.
#Programming# I've compiled a list of six popular iPhone apps and the iOS Open Source Software they use. I've also...
Sep
25
如何在 Github 搭建静态博客
Published 12:09 Sep 25, 2014 by @ezra.
#Programming# 其实最初做这个博客,可能是因为我暗藏了一颗文青的心,后来老有人问我博客怎么做的,想来想去干脆写个教程好了。 引言 这样的博客系统适合哪些人群呢? 不想、或者不愿意租用服务器 不想、或者不熟悉后端代码...
Sep
20
iOS: 获取应用版本
Published 12:09 Sep 20, 2014 by @ezra.
#Programming# 获取 iOS 应用版本信息: - (NSString *)applicationVersion { return [[[NSBundle mainBundle] infoDictionary]...
Prev
1 ... 53 54 55 ... 69
Next
Pinned Message
HOTODOGO
The Founder and CEO of Infeca Technology.
Developer, Designer, Blogger.
Big fan of Apple, Love of colour.
Feel free to contact me.
反曲点科技创始人和首席执行官。
开发、设计与写作皆为所长。
热爱苹果、钟情色彩。
随时恭候 垂询