自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 收藏
  • 关注

转载 函数定义

1.如果是递归函数就必须明确地说明2.函数仅包含一个语句花括号可以不写转载于:https://www.cnblogs.com/fanwenzheIOS/p/5494424.html

2016-05-15 06:25:00 101

转载 String

Java.long.String 就是 String转载于:https://www.cnblogs.com/fanwenzheIOS/p/5494423.html

2016-05-15 06:11:00 98

转载 doc文件UIWebView 直接展示

NSString *path=[[NSBundle mainBundle]pathForResource:@"测试一" ofType:@"docx"]; //获取内容 NSData *data = [[NSData alloc]initWithContentsOfFile:path]; NSString *string = [[NSString al...

2016-04-27 00:15:00 107

转载 iOS百度地图之理论1

---恢复内容开始---在使用SDK的类 按需 引入下边的头文件:#import <BaiduMapAPI_Base/BMKBaseComponent.h>//引入base相关所有的头文件#import <BaiduMapAPI_Map/BMKMapComponent.h>//引入地图功能所有的头文件#import <Ba...

2016-02-14 12:49:00 146

转载 iOS移动架构设计FWZ

1.项目架构搭建2.多媒体框架 iOS音频框架 iOS视频框架 聊天架构设计3.推送架构设计 (推送原理实现服务器端、推送原理实现客户端)4.DI架构5.IOC架构6.ORM数据库架构7.Http网络请求框架8.列表缓存架构9.图片缓存架构10.聊天架构设计 (客户端 服务器端)11.推送架构设计 推送原理实现服务器端 推送原理实现客户端...

2016-02-12 01:19:00 82

转载 iOS设计模式FWZ

1.单例模式2.Builder设计模式4.原型模式5.工厂方法模式6.状态模式7.解释器模式8.责任编辑模式9.命令模式10.观察者模式 KVO11.备忘录模式12.迭代器模式13.模板方法模式14.访问者模式转载于:https://www.cnblogs.com/fanwenzheIOS/p/5186781.html...

2016-02-12 00:37:00 89

转载 ios轻量级开发FWZ

1.编程规范2.设计模式MVC、代理3.UIKit框架  UIkit简介以及UI层次结构、UI类结构  UI组件原理以及使用 UIApplication UIView以及子类 UIViewController4.自定义UI组件5.多点触控、手势处理6.UI动画编程7.兼容性开发 分辨率兼容(Xib\StoryBoard详解)转载于:https...

2016-02-12 00:08:00 75

转载 轻量级开发

1.编程规范2.设计模式MVC、代理3.UIKit框架  UIkit简介以及UI层次结构、UI类结构  UI组件原理以及使用 UIApplication UIView以及子类 UIViewController4.自定义UI组件5.多点触控、手势处理6.UI动画编程7.兼容性开发 分辨率兼容(Xib\StoryBoard详解)转载于:https...

2016-02-12 00:06:00 206

转载 UITableViewCell左侧会有默认15像素的空白

ios7中,UITableViewCell左侧会有默认15像素的空白。设置setSeparatorInset:UIEdgeInsetsZero 能将空白去掉。ios8中,setSeparatorInset:UIEdgeInsetsZero 的设置已经不起作用了。下面是解决办法,首先在viewDidLoad方法加入以下代码:if ([self.tableView respond...

2016-01-09 11:43:00 128

转载 正则表达式

一、校验数字的表达式1 数字:^[0-9]*$2 n位的数字:^\d{n}$3 至少n位的数字:^\d{n,}$4 m-n位的数字:^\d{m,n}$5 零和非零开头的数字:^(0|[1-9][0-9]*)$6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})?$7 带1-2位小数的正数或负数:^(\-)?...

2015-12-22 22:23:00 42

转载 加载第三方Cocoapod库时到项目时

Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`. You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.sudo xcode-select --switc...

2015-12-21 15:53:00 114

转载 IOS seachbar 收回键盘

1 //点击搜索 收回键盘2 3 -(void)searchBarSearchButtonClicked:(UISearchBar *)searchBar{4 5 6 7 [_searchBar resignFirstResponder];//放弃第一响应者对象,关闭虚拟键盘8 }代理UISearchBarDe...

2015-11-22 06:16:00 187

转载 设置tableView 的Section的title问题

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{ UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 15, 300, 60)]; titleLab...

2015-11-21 11:35:00 311

转载 UISearchView

1 #import "ViewController.h" 2 3 @interface ViewController ()<UITableViewDelegate,UITableViewDataSource,UISearchResultsUpdating> 4 { 5 // 原始数据源 6 NSMutableArray *_arra...

2015-11-21 10:34:00 89

转载 UICollectionView 头视图、 尾视图以及Cell自定制

#import "ViewController.h"#import "CustomCollectionViewCell.h"@interface ViewController ()<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>{...

2015-11-21 09:43:00 143

转载 UICollectionView

#import "ViewController.h"@interface ViewController ()<UICollectionViewDataSource,UICollectionViewDelegate>@end@implementation ViewController- (void)viewDidLoad { [su...

2015-11-21 09:23:00 59

转载 UITableViewCell自定义高度

第一步  在ViewController里,需要有数据,即就是数组,第二步 创建一个UITableViewCell .h文件中定义两个属性 分别是 一个字符串(用来赋值在TableViewcell 的Label 的Text),一个浮点数记录TableViewcell的高 .m文件中 定义一个全局变量label //实现这个方法- (in...

2015-11-19 19:16:00 216

转载 登录注册页面的

//第一页#import "ViewController.h"#import "LoginAndRegisterViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super vi...

2015-11-18 13:37:00 134

转载 监听键盘- KeyBoard

- (void)KeyBoardShowOrHide{ // NSNotificationCenter 通知中心 // 检测键盘将要消失的状态 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(hideKeyBoard:) name:UIKeyboar...

2015-11-18 13:22:00 154

转载 UITableViewDelete 删除

#import "ViewController.h"#import "FWZViewController.h"@interface ViewController ()<UITableViewDelegate,UITableViewDataSource>{ NSMutableArray *_arrayM; UITableView *_tableV...

2015-11-18 11:02:00 114

转载 UITabView 添加

#import "ViewController.h"@interface ViewController ()<UITableViewDataSource,UITableViewDelegate>{ UITableView *_tableView; NSMutableArray *_arrayM;}@end@implement...

2015-11-18 10:54:00 122

转载 navigationbar背景图 设置左右按钮

// 设置控制器的title self.title = @"O(∩_∩)O哈哈~"; // 设置navigationbar 的样式 // self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent; // 设置navigation...

2015-11-18 09:55:00 89

转载 Navigation1 PUSH & POP

//1.进入第一 push- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ FirstViewController *firstVC = [[FirstViewController alloc] init]; [self.navigationController pushView...

2015-11-18 09:54:00 72

转载 母传键老师课堂笔记 -----ViewController的生命周期

//1.手势,viewcontroller 进入下一页- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ MCJViewController *mcjVC = [[MCJViewController alloc] init]; [self presentViewController...

2015-11-18 09:46:00 71

转载 可折叠tableView - 仿照通讯录

我的xcode 是 IOS9.0 Xcode.7.0版本符合,可复制黏贴直接用#import "ViewController.h"1.定义成员变量 遵循代理@interface ViewController ()<UITableViewDelegate,UITableViewDataSource>{ NSMutableArray ...

2015-11-17 17:40:00 119

转载 登录注册界面的传值

1.注册页面写代理.h文件里的内容如下,需要注意的是: (1).代理名为红色标注,直接复制粘贴  (2).一定要写黄色区域@class RegisterViewController;@protocol RegisterViewControllerDelegate <NSObject>@optional- (void)Reg...

2015-11-15 15:51:00 666

转载 第二周笔记

1. 访问网络 加载数据 并显示在标签上NSString *path = @"http://c.3g.163.com/nc/article/list/ T1348649079062/0-20.html"; // 构建网址NSURL *url=[NSURL URLWithString:path];NSData *data=[[NSData alloc]ini...

2015-11-15 15:34:00 62

转载 截屏到相册

//1.创建按钮UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(100, 200, 50, 50)]; [button setTitle:@"截屏" forState:UIControlStateNormal]; [button addTarget:self action:@selec...

2015-11-06 14:42:00 68

转载 课堂笔记——从StroryBoard里读取ViewControlller

代码形式从Storyboard里边读一个ViewController1 取出storyboard(使用UIStoryboard封装的一个类型) UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];2 从story...

2015-10-30 11:45:00 113

转载 SVProgressHUD

SVProgressHUD显示一个进度条[SVProgressHUD showWithMaskType:SVProgressHUDMaskTypeClear];隐藏一个进度条[SVProgressHUD dismiss]设置前景色和背影色 [SVProgressHUD setBackgroundColor:[UIColor blueColor]]...

2015-10-30 11:40:00 93

转载 课堂笔记—— post 上传

- (void)btnLoad_Touch:(id)sender { // 接收文件上传的地址 NSString *urlString = @"http://localhost/BookReaderData/UploadFileWithPost.php"; // 要上传的文件的文件名 NSString *folder = [NSS...

2015-10-30 10:17:00 90

转载 POST网络访问

NSString *address = @"http://localhost/BookReaderData/BasicGetAndPost.php"; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:address]]; [re...

2015-10-30 09:48:00 106

转载 ISO 网络访问

NSString *address = @"http://localhost/BookReaderData/BasicGetAndPost.php"; // GETNSString *parameter = [NSString stringWithFormat:@"%@=%@", @"para", @"中文 Parameter Value...

2015-10-30 09:45:00 84

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除