摘要:
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard.string = self.label.text; 阅读全文
摘要:
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard.string = self.label.text; 阅读全文
摘要:
网络分wifi、3G、2G、无网络连接;第一种方案:逻辑如下:1、先判断当前有无网络;2、有网络的情况下:(1)、网络为wifi;(2)、网络为3G;(3)、网络为2G;使用reachability里的KShouldPrintReachabilityFlags 就可以详细区分出wifi、3G、2G,... 阅读全文
摘要:
设置图片颜色 tabBarVCtrl.tabBar.selectedImageTintColor = [UIColor greenColor];//设置tabBarItem选中时的字图颜色,iOS 8.0中没有该属性(若设置,会出现警告)设置title颜色[[UITabBarItem appeara... 阅读全文
摘要:
Json解析JSON就是一串字符串 只不过元素会使用特定的符号标注。{} 双括号表示对象[] 中括号表示数组"" 双引号内是属性或值: 冒号表示后者是前者的值(这个值可以是字符串、数字、也可以是另一个数组或对象)所以 {"name": "Michael"} 可以理解为是一个包含name为Michae... 阅读全文
摘要:
//// main.m// OCbasic1//// Created by apple on 14-8-5.// Copyright (c) 2014年 苹果IOS软件开发者. All rights reserved.//#import #import "Dog.h"int main(int arg... 阅读全文
摘要:
//// ViewController.m// JapaneseDictionary//// Created by apple on 14-8-7.// Copyright (c) 2014年 苹果IOS软件开发者. All rights reserved.//#import "ViewContro... 阅读全文
摘要:
- (void)viewDidLoad { [super viewDidLoad]; //用一个或多个键值对初始化一个字典对象,以值,键,值,键,值,键,...,nil的顺序 NSDictionary *dict = [[NSDictionary alloc] initWithObjectsA... 阅读全文
摘要:
//// secondViewController.m// AudioPlayer//// Created by apple on 14-7-24.// Copyright (c) 2014年 苹果IOS软件开发者. All rights reserved.//#import "secondView... 阅读全文
摘要:
//// ViewController.m// AudioPlayer//// Created by apple on 14-7-18.// Copyright (c) 2014年 苹果IOS软件开发者. All rights reserved.//#import "ViewController.h... 阅读全文
|