会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
davesuen
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
2015年8月4日
iOS 应用隐藏状态栏
摘要: 有时候在 Storyboard 和 target 里的设定并不足以使得应用能够完全隐藏状态栏。这时候需要到 Info.plist,添加一项:View controller-based status bar appearance,并把值设为 NO。
阅读全文
posted @ 2015-08-04 08:27 davesuen
阅读(149)
评论(0)
推荐(0)
2015年8月1日
iOS 错误:… is being deallocated while key value observing are still registered with it
摘要: 这个错误从字面上来看就是有一个实例由于被observing而无法被释放。具体原因可能是该对象添加了一个oberver。所以释放的时候要先取消observer。具体方法是在 dealloc 方法中:- (void)dealloc { [object removeObserver:self for...
阅读全文
posted @ 2015-08-01 03:40 davesuen
阅读(159)
评论(0)
推荐(0)
2015年6月25日
iOS Png Crush 错误
摘要: 添加新的 png 图片到项目里的时候,出现错误错误内容:while reading... pngcrush caught libpng error:cound not find file...copypng emitted errors but did not return a nonzero ex...
阅读全文
posted @ 2015-06-25 17:28 davesuen
阅读(164)
评论(0)
推荐(0)
2015年6月16日
iOS Keychain 跨应用
摘要: Keychain 可以用来持久保存一些信息。通常每个应用都有自己的 Keychain Access。但有时你会需要多个应用共用一些信息。这时需要创建 Keychain Access Group。Keychain Access Group 需要在 entitlements 文件里创建。值默认是 App...
阅读全文
posted @ 2015-06-16 00:08 davesuen
阅读(384)
评论(0)
推荐(0)
2015年6月11日
iOS 禁止多按钮同时响应
摘要: 只需要对相应的按钮添加一行代码[aButton setExclusiveTouch:YES];
阅读全文
posted @ 2015-06-11 23:21 davesuen
阅读(185)
评论(0)
推荐(0)
2015年5月1日
iOS 添加字体
摘要: 1. 将字体(ttf 文件)导入项目。2. 在项目plist 文件里的 Fonts provided by application 添加新导入的字体。3. 代码中的调用[aLabel setFont:[UIFont fontWithName:@"a-font-name" size 100]];注意 ...
阅读全文
posted @ 2015-05-01 00:20 davesuen
阅读(209)
评论(0)
推荐(0)
2015年1月15日
iOS 需要了解的
摘要: 1. 用 CocoaPods 来管理应用用到的第三方库。2. Jenkins3. Robotium4. RESS
阅读全文
posted @ 2015-01-15 02:29 davesuen
阅读(99)
评论(0)
推荐(0)
iOS 优秀开源项目
摘要: 1. 界面iCarousel: 用来做图片旋转显示效果(相册)。MZTimerLabel:用来制作一个计时并显示时间的 label。MSDynamicsDrawerViewController,RESideMenu:非常强大的制作导航抽屉的工具。PNChart,iOSPlot:制作图表Shimmer...
阅读全文
posted @ 2015-01-15 00:33 davesuen
阅读(293)
评论(0)
推荐(0)
2015年1月14日
Android ImageView,ImageButton 与 Button
摘要: 1. ImageButton 继承自 ImageView。两者具备甚小,因为 ImageView 同样可以点击相应,同样有点击的阴影效果。实际上他们的区别在于默认 style。比如同样放一个背景和一个图片,会发现 ImageButton 的图片会居中,但大小不伸缩。但在 ImageView 里的图片...
阅读全文
posted @ 2015-01-14 00:19 davesuen
阅读(421)
评论(0)
推荐(0)
2015年1月8日
Android 获取 content layout
摘要: if (findViewById(android.R.id.content) instanceof ViewGroup) { ViewGroup mainView = ((ViewGroup)findViewById(android.R.id.content)); ...
阅读全文
posted @ 2015-01-08 18:29 davesuen
阅读(485)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
公告