附:本文来自IOS6-Tutorias的翻译,本做笔记之用,故语言简练。一,可用的IAP类型:Non-Consumable:用户只需购买一次,不需要再次购买,即可在多台设备上拥有之(restore技术)。Consumable:用户可以购买多次(不限定次数)。例如金币。Auto-Renewable S...
分类:
其他好文 时间:
2014-08-19 10:40:43
阅读次数:
259
1. iOS6+的UIScrollerView不滚动的问题
分类:
其他好文 时间:
2014-08-18 18:23:52
阅读次数:
162
@在iOS6之前需要使用NSMutableAttributedString时都需要导入:CoreText.framework框架的,但在iOS6 之后就不在需要了.
- (void)testOfNSMutableAttributedStringAndNSAttributedString
{
/**
* - (void)addAttribute:(NSString *)name...
分类:
移动开发 时间:
2014-08-17 22:49:13
阅读次数:
212
效果图:ios 6 默认:修改之后:代码:if (!IsIOS7) { [[ _searchBar.subviews objectAtIndex : 0 ] removeFromSuperview ]; [ _searchBar setBackgroundColor :[ UIColor...
分类:
移动开发 时间:
2014-08-16 12:27:50
阅读次数:
254
首先上张图:1:ios6导航栏默认按钮rightBarButtonItem 是不是很丑的赶脚?现在通过以下方法来改变以下;code: UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeCustom]; rightButt...
分类:
移动开发 时间:
2014-08-16 12:27:00
阅读次数:
205
先上一张图:为了方便观察,我给UITextField设置了一个背景颜色.是不是赶脚偏了?通过一个方法解决:_telTextField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;如图:就ok了..
分类:
移动开发 时间:
2014-08-16 12:22:30
阅读次数:
267
1,ios6屏幕旋转,所有被push出来的controller的旋转属性都由root controller中以下函数- (NSInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll;}- (BOOL)...
分类:
其他好文 时间:
2014-08-15 19:24:39
阅读次数:
254
本文转载至http://blog.csdn.net/huanghuanghbc/article/details/10150355ios6.0,程序为横屏,出现闪退*** Terminating app due to uncaught exception 'UIApplicationInvalidIn...
分类:
移动开发 时间:
2014-08-15 14:34:58
阅读次数:
211
Auto Layout是在WWDC2012上被引入到iOS中的,从iOS6.0以后就开始支持,但是大多数的开发者还是习惯使用传统的UI布局方式,虽然有一大部分开发者早已使用了Auto Layout,这其中大多数的开发者是在拖拽IB文件或者是使用StoryBoard时才会选择用Auto Layout的...
分类:
其他好文 时间:
2014-08-11 21:11:22
阅读次数:
199
目前为止,即使你的界面设计是在合理的复杂度内,你也必须要为之写许多代码来适应变化的布局。现在我相信你会很高兴听到这种情况将不会发生了-对于iPhone与iPad IOS6 带来了一个非常了不起的特征:自动布局。自动布局不仅能给你的应用带来各种屏幕尺寸设计的支持,做为额外的惊喜,它还能使设计中的各种小...
分类:
移动开发 时间:
2014-08-11 21:10:22
阅读次数:
292