上一页 1 ··· 9 10 11 12 13 14 15 下一页

2015年9月11日

iOS开发——生成条形码,二维码

摘要: - (void)viewDidLoad { [super viewDidLoad]; self.imageView.image = [self generateBarCode:@"1524829417" width:60 height:60]; self.imageView2.image = [se 阅读全文

posted @ 2015-09-11 17:36 乱七八糟21号 阅读(648) 评论(0) 推荐(0)

2015年9月7日

AFNetWorking发送post请求,Code=-1016错误

摘要: 使用AFNetWorking发送post请求时,可能会出现下面Code=-1016问题。打印的error如下: Error:Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unac 阅读全文

posted @ 2015-09-07 16:41 乱七八糟21号 阅读(1001) 评论(0) 推荐(0)

2015年8月20日

'libxml/tree.h' file not found

摘要: Lexical or Preprocessor lssue 'libxml/tree.h' file not found 解决方法: 1.在Build Phases——>Link Binary With Libraries中,导入libxml2.dylib; 2.在Build Settings——> 阅读全文

posted @ 2015-08-20 15:55 乱七八糟21号 阅读(354) 评论(0) 推荐(0)

2015年8月19日

UIActionSheet

摘要: 我感觉UIActionSheet和UIAlertView的用法差不多,都很简单,下面给出一个简单的Demo,具体想用哪个,根据公司要求和个人爱好。 #import "ViewController.h" @interface ViewController ()<UIActionSheetDelegat 阅读全文

posted @ 2015-08-19 12:03 乱七八糟21号 阅读(334) 评论(0) 推荐(0)

2015年8月15日

UIAlertView

摘要: 我感觉UIActionSheet和UIAlertView的用法差不多,想用哪个,根据公司要求和个人爱好。 #import "ViewController.h" @interface ViewController ()<UIAlertViewDelegate> @end @implementation 阅读全文

posted @ 2015-08-15 17:42 乱七八糟21号 阅读(150) 评论(0) 推荐(0)

iOS纯代码制作欢迎界面——UIScrollView, UIPageControl, UIImageView,UIButton, NSTimer

摘要: 欢迎界面,还是比较简单的,一个UIScrollView控件,一个UIPageControl,几个UIImageView即可摆平。在这里光玩这些,就显得诚意不足了。特意拓展一下,再加几个UIButton,可以让这个欢迎界面变成可点击的,可滑动的模块添加在页面中,然后再加一个NSTimer,让它自己隔2 阅读全文

posted @ 2015-08-15 11:40 乱七八糟21号 阅读(404) 评论(0) 推荐(0)

2015年8月14日

UISegmentedControl——分段控件

摘要: 分段控件,提供了一组按钮,但是只能激活一个。通过UIControlEventValueChanged事件实现与用户的交互,并通过selectedSegmentIndex判断当前选定的控件,通过titleForSegmentAtIndex可以获取当前选中控件的标题。 - (void)viewDidLo 阅读全文

posted @ 2015-08-14 11:09 乱七八糟21号 阅读(331) 评论(0) 推荐(0)

2015年8月13日

UISwitch——开关控件

摘要: 开关的可配置选项很少,一般用于处理布尔值。 下面给出一个小Demo,创建两个开关,开关一可以控制开关二的可用与否,两者的关系就相当于水闸与水龙头的关系。 #import "ViewController.h" @interface ViewController () @property(nonatom 阅读全文

posted @ 2015-08-13 15:30 乱七八糟21号 阅读(178) 评论(0) 推荐(0)

2015年8月12日

UIImageView控件

摘要: UIImageView是用于显示图像的,在iOS开发中,我们无需专门去写什么代码,不需要检查设备的类型,只需要把1x、2x、3x的图像添加到项目中,图像视图会自动的在正确的时间加载正确的图像。 (1)UIImageView的创建及简单用法 UIImageView *imageView = [[UII 阅读全文

posted @ 2015-08-12 18:02 乱七八糟21号 阅读(424) 评论(0) 推荐(0)

2015年8月11日

Undefined symbols for architecture i386: "_crc32", referenced from:——crc链接错误

摘要: 有时候用别人的框架,你会碰到下面的错误,很是吓人,什么玩意,我怎么看不懂!!! Undefined symbols for architecture i386: "_RELEASE", referenced from: -[DemoAnnotationView dealloc] in DemoAnn 阅读全文

posted @ 2015-08-11 16:57 乱七八糟21号 阅读(1479) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 15 下一页

导航