会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
StevenFu
博客园
首页
新随笔
联系
订阅
管理
2015年9月30日
iOS9 请求出现App Transport Security has blocked a cleartext HTTP (http://)
摘要: info.plist 中添加NSAppTransportSecurity Dic NSAllowsArbitraryLoads Yes
阅读全文
posted @ 2015-09-30 11:25 StevenFu
阅读(202)
评论(0)
推荐(0)
2013年6月14日
uitableview 回顶端
摘要: [tvDynamicsetContentOffset:CGPointMake(0, 0) animated:NO];
阅读全文
posted @ 2013-06-14 14:27 StevenFu
阅读(105)
评论(0)
推荐(0)
2013年6月13日
iOS开发中的键盘高度变化处理
摘要: - (void)viewWillDisappear:(BOOL)animated{[[NSNotificationCenterdefaultCenter] removeObserver:selfname:UIKeyboardWillShowNotificationobject:nil];[[NSNotificationCenterdefaultCenter] removeObserver:selfname:UIKeyboardWillHideNotificationobject:nil];}- (void)viewDidLoad{ [superviewDidLoad]; [[NSNoti...
阅读全文
posted @ 2013-06-13 10:44 StevenFu
阅读(381)
评论(0)
推荐(0)
2013年5月22日
点击空白处键盘hide
摘要: UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissKeyboard)]; [self.view addGestureRecognizer:tap];}-(void)dismissKeyboard { [Global cancelKeyBoard:self.view];}
阅读全文
posted @ 2013-05-22 11:46 StevenFu
阅读(126)
评论(0)
推荐(0)
2013年5月19日
PLIST 读写
摘要: NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES); NSString *path=[paths objectAtIndex:0]; NSString *filename=[path stringByAppendingPathComponent:[path stringByAppendingString:@"faceMap_ch.plist"]]; //NSFileManager *fM=[NSFileManager defaultManag
阅读全文
posted @ 2013-05-19 20:16 StevenFu
阅读(146)
评论(0)
推荐(0)
2013年5月10日
ASIHTTPRequest-详解
摘要: ASIHTTPRequest 是一款极其强劲的 HTTP 访问开源项目。让简单的 API 完成复杂的功能,如:异步请求,队列请求,GZIP 压缩,缓存,断点续传,进度跟踪,上传文件,HTTP 认证。在新的版本中,还加入了 Objective-C 闭包 Block 的支持,让我们的代码加轻简灵活。 下面就举例说明它的 API 用法。发起一个同步请求 同步意为着线程阻塞,在主线程中使用此方法会使应用Hang住而不响应任何用户事件。所以,在应用程序设计时,大多被用在专门的子线程增加用户体验,或用异步请求代替(下面会讲到)。 - (IBAction)grabURL:(id)sender { NSURL
阅读全文
posted @ 2013-05-10 15:13 StevenFu
阅读(130)
评论(0)
推荐(0)
2013年5月6日
Xcode解决error: PCH file built from a different branch ((clang-425.0.27))
摘要: error: PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.28))1 error generated.shift+com+kClearn下就OK了
阅读全文
posted @ 2013-05-06 10:48 StevenFu
阅读(499)
评论(0)
推荐(0)
2013年4月27日
ArrayList IndexOf
摘要: IndexOf(obj) 如果返回-1 则obj不在集合中
阅读全文
posted @ 2013-04-27 13:23 StevenFu
阅读(192)
评论(0)
推荐(0)
2013年4月17日
IOS OPENURL调用第三方APP
摘要: A项目中的info.plist中添加 B调用A[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:@"myapp://"]];关于传参B程序中 [[UIApplicationsharedApplication] openURL:[NSURLURLWithString:@"myapp://username=ios001;pwd=123123"]];A程序AppController中处理- (BOOL)application:(UIApplication *)application han
阅读全文
posted @ 2013-04-17 17:44 StevenFu
阅读(410)
评论(0)
推荐(0)
2013年3月27日
IOS 数字键盘添加“完成”按钮
摘要: #import <UIKit/UIKit.h>@interface ViewController : UIViewController{ UIButton *doneInKeyboardButton;}- (IBAction)NOBut:(id)sender;- (IBAction)But:(id)sender;@end#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ //注册通知 [[NSNot
阅读全文
posted @ 2013-03-27 09:43 StevenFu
阅读(890)
评论(0)
推荐(0)
下一页
公告