摘要: 关于状态栏和导航栏遇到的设置问题1:statusBar字体为白色在plist里面设置View controller-based status bar appearance 为 NO;设置statusBarStyle 为 UIStatusBarStyleLightContent2:设置statusBa 阅读全文
posted @ 2016-02-22 16:50 水清清 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 如何给Label中的文字划线。UILabel *lable = [[UILabel alloc] initWithFrame:CGRectMake(20, 60, 100, 30)]; [self.view addSubview:lable]; lable.backgroundColor = [UI 阅读全文
posted @ 2016-02-22 16:43 水清清 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 关于iOS中提示框的使用在iOS8的SDK里,已经对提示框进行了更改,现在属于 UIAlertController,其接口如下声明NS_CLASS_AVAILABLE_IOS(8_0) @interface UIAlertController : UIViewController,不再是一个UIVi 阅读全文
posted @ 2016-02-22 16:38 水清清 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 关于使用AFNetworking时,可能会遇到的一个问题。有很多童鞋在使用AF时,可能获取响应的数据失败,终其原因是因为acceptableContentTypes里缺少了一个@"text/html"里,而很多同学可能会这么设置AFHTTPRequestOperationManager *manag 阅读全文
posted @ 2016-02-22 16:37 水清清 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1:什么是 block 体,具体是什么形式,以及在什么时候使用? a) Block是一个C级别的语法以及运行时的一个特性,和标准C中的函数(函数指针)类似,从ios4.0开始就很好的支持Block。 b)其形式如下: 再次声明:block可以访问和block定义在同一个词法范围里的变量。 <span 阅读全文
posted @ 2016-02-22 16:33 水清清 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 关于UIView中的@property(nonatomic) CGAffineTransform transform; // default is CGAffineTransformIdentity. animatable。凡是已CG开头的类都属于CoreGraphics.framework,其中的 阅读全文
posted @ 2016-02-22 16:32 水清清 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 如何判断程序是否为第一次启动,并实现第一次启动时实现用户导航的页面。在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions里实现如下代码 阅读全文
posted @ 2016-02-22 16:29 水清清 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 关于iOS含有如下宏定义的 UI_APPEARANCE_SELECTOR; 的方法 ,不知道你是否知道其真正的意义。当你给你的navigationBar设置BarTintColor时,你可以使用2种方法(当然只有在iOS7以后在有BarTintColor方法)@property(nonatomic, 阅读全文
posted @ 2016-02-22 16:27 水清清 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 可以通过设置 VC对应的 XIB 中 View 的show attrubite inspector属性,更改其 Orientation为 Landscape,即可默认为横屏布局。我们可以通过3种方式设置 App界面的取向。第一种:通过全局设置// The system only calls this 阅读全文
posted @ 2016-02-22 16:24 水清清 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 在iOS开发中,如何使用Zbar扫描第三方库。1)由于苹果的要求,从2015年2月1日开始,所有新上传的APP必须支持64位已经使用iOS8的SDK。具体苹果方便的声明信息的链接如下:https://developer.apple.com/news/?id=10202014a,当我们在进行二维码扫描 阅读全文
posted @ 2016-02-22 15:39 水清清 阅读(469) 评论(0) 推荐(0) 编辑