08 2017 档案
摘要:// // ViewController.swift // Swift+Array import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self
阅读全文
摘要:// // ViewController.swift // Swift+String import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() //v
阅读全文
摘要:1:ARC环境下,strong代替retain.weak代替assign,xcode 4.2(ios sdk4.3和以下版本)和之前的版本使用的是retain和assign,是不支持ARC的。xcode 4.3(ios5和以上版本)之后就有了ARC,并且开始使用 strong与weak 2:weak
阅读全文
posted @ 2017-08-29 10:28
屋巢
摘要:// // AppDelegate.m // UITabBarController+UINavigationController #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate -
阅读全文
摘要:// // ViewController.m // UIPickerViewAll #import "ViewController.h" @interface ViewController () @end @implementation ViewController /* UIPickView控件常
阅读全文
摘要://只是简单的使用,以后我会更新一个日常使用的一些demo // ViewController.m // UIDatePickerAll #import "ViewController.h" @interface ViewController () { UIDatePicker *myDatePic
阅读全文
摘要:// // ViewController.m // UIToolbarAll #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad
阅读全文
摘要:// // ViewController.m // UIPageControlAll #import "ViewController.h" @interface ViewController ()<UIScrollViewDelegate> { UIScrollView *helpScrView;
阅读全文
摘要:// // ViewController.m // UISwtichAll #import "ViewController.h" @interface ViewController () { UILabel *valueLabel; UILabel *minLabel; UILabel *maxLa
阅读全文
摘要:UIAlertController是iOS8推出的新概念,取代了之前的 UIAlertView和UIActionSheet(虽然现在仍可以使用,但是会有警告)。所以还是建议大家以后还是使用UIAlertController吧(本人看见警告就有种冲动😂),下面有些代码有点重复,但是能过为了更清楚的看
阅读全文
摘要:// // ViewController.m // TextViewAll #import "ViewController.h" @interface ViewController ()<UITextViewDelegate> @end @implementation ViewController
阅读全文
摘要:// // ViewController.m // ScrollviewAll #import "ViewController.h" @interface ViewController ()<UIScrollViewDelegate> @end @implementation ViewControl
阅读全文
摘要:// // ViewController.m // TextFieldAll // #import "ViewController.h" @interface ViewController ()<UITextFieldDelegate> @end @implementation ViewContro
阅读全文
摘要:// // ViewController.m // LabelAll // #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad
阅读全文
摘要:在IOS开发的过程中,UILabel是很常用的一个控件,同时也是大量使用的一个控件。创建一个UILabel一般需要五六句代码,如果我们需要创建几十个UILabel,就意味着我们要写五六十句代码,其实很多代码是重复的,我们可以把类似的代码写到一个公共的方法中,以提高工作效率和降低代码重复。官方提供UI
阅读全文
摘要:有些属性和方法始终是记不清,只能记下来,方便查找 如果对你有帮助请支持,没有帮助请告诉我哪里需要改进!谢谢! // ViewController.m // TableViewAll #import "ViewController.h" @interface ViewController ()<UIT
阅读全文
摘要:对UIbutton的简单使用(基本上足够了),话不多说,直接看 UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom]; /* UIButtonTypeCustom = 0, //自定义风格 UIButtonTypeSyst
阅读全文

浙公网安备 33010602011771号