[self.navigationController setToolbarHidden:NO animated:animated];
1.创建一个定时器 第一个参数:时间间隔 单位是 秒/s 第二个参数:任意对象地址 第三个参数:第二个参数是哪个类的对象 那么这个方法就是那个类得 第四个参数:nil 第五个参数:…
总结了一下NSFileManager的一些常用方法, NSArray *paths =NSSearchPathForDirectoriesIn…
/////记得添加 代理 <UIScrollViewDelegate> UIScrollView* sv = [[UIScrollView alloc] initWit…
////别忘在 .h 中写代理 <UITextViewDelegate> ///UILabel 显示的文本只读,无法编辑,可以根据文字个数自动换行; ///UIText…
/////别忘记 .h 中写代理 <UIPickerViewDelegate,UIPickerViewDataSource> /////UIPickerView和UID…
导入 MediaPlayer.framework - (void)viewDidLoad { [super viewDidLoad]; NSString* path = [[NSB…
#import "MBProgressHUDManager.h" @property (nonatomic, strong) MBProgressHUDManager *HUDMa…
- (void)viewDidLoad { [super viewDidLoad]; _imageView = [[UIImageView alloc] initWithFrame…
获取iOS设备信息需要用到UIDevice类,UIDevice.h文件定义了这些属性: @property(nonatomic,readonly,retain) NSString …
NSURLRequest 简单的网络请求 - (void)viewDidLoad { [super viewDidLoad]; NSURL* url = [NSURL URLWit…
///在 .h 写代理 <UITableViewDelegate,UITableViewDataSource,UISearchBarDelegate> ///结合UIT…
iOS类别(Category)与扩展(Extension) 创建