博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年7月28日

摘要: #import <Foundation/Foundation.h> #import "AFNetworking.h" @interface AFHttpClient : NSObject DEFINE_SINGLETON_FOR_HEADER(AFHttpClient); /** * 判断网络是否正 阅读全文

posted @ 2016-07-28 05:53 吕霖 阅读(374) 评论(0) 推荐(0) 编辑

摘要: if (resultCode == 0) { self.imageServerString = [responseObject objectForKey:@"imagesServerURL"]; [self buildOrderListData:responseObject]; [self.cont 阅读全文

posted @ 2016-07-28 05:49 吕霖 阅读(281) 评论(0) 推荐(0) 编辑

摘要: #import <UIKit/UIKit.h> #import "YQZMutableArray.h" @interface YQZViewController : UIViewController @property (nonatomic, strong) NSString *kTitle; // 阅读全文

posted @ 2016-07-28 05:41 吕霖 阅读(445) 评论(0) 推荐(0) 编辑

摘要: #import <UIKit/UIKit.h> #import "SVPullToRefresh.h" #import "YQZViewController.h" @interface YQZPullViewController : YQZViewController { IBOutlet UITa 阅读全文

posted @ 2016-07-28 05:37 吕霖 阅读(228) 评论(0) 推荐(0) 编辑

2015年9月10日

摘要: 编写cell中得button点击事件- (IBAction)showButtonClick:(id)sender{ UIButton *button = (UIButton *)sender; UIWindow* window = [UIApplication sharedApplication... 阅读全文

posted @ 2015-09-10 17:02 吕霖 阅读(766) 评论(0) 推荐(0) 编辑

2014年2月27日

摘要: 举例:首先定义TestModel如下:@interface TestModel : NSObject@property (nonatomic, strong) NSString *name;@property (nonatomic, strong) NSString *desc;@property (nonatomic, assign) int age;@end然后在viewControl中viewDidLoad中添加如下代码 TestModel *model = [[TestModel alloc] init]; model.name = @"Jack"; model.a 阅读全文

posted @ 2014-02-27 18:47 吕霖 阅读(723) 评论(0) 推荐(0) 编辑

摘要: 总是忘记xcode中查找中文,这次记下来,以后就不会忘记了,哈哈请看下图:切换到查找,点击find后面的text,选择Regular Expression,然后输入1. 查找非ascii的字符 @"[^\x00-\xff]+2. 取所有属性变量定义 (\w+)(\s)*\*(?:\s*const )?(\s)*(\w+)3. 取所有属性变量定义, 带_开头的 (\w+)(\s)*\*(?:\s*const )?(\s)*_(\w+)4. 修改私有变量名,可以点击私有变量之后,选择edit all in scope感谢熊总(熊威)的大力帮助! 阅读全文

posted @ 2014-02-27 18:33 吕霖 阅读(665) 评论(0) 推荐(0) 编辑

2013年9月24日

摘要: 之前使用的xcode4.6的插件在升级到xcode5后不能使用了,查了很多资料,终于知道是缺少了DVTPlugInCompatibilityUUIDs请在插件项目plist文件中加入DVTPlugInCompatibilityUUIDsstring值1:63FC1C47-140D-42B0-BB4D-A10B2D225574string值2:37B30044-3B14-46BA-ABAA-F01000C27B63截图:附:Xcode 4 插件制作入门 阅读全文

posted @ 2013-09-24 17:14 吕霖 阅读(1273) 评论(0) 推荐(0) 编辑

2013年2月1日

摘要: 使用前 需引入QuartzCore.framework, 并在相关文件中加入 #import "QuartzCore/QuartzCore.h" 定义 shakeFeedbackOverlay为UIImageView设置 self.shakeFeedbackOverlay.alpha = 0.0; self.shakeFeedbackOverlay.layer.cornerRadius = 10.0; //设置圆角半径1、图像左右抖动 CABasicAnimation* shake = [CABasicAnimation animationWithKeyPath:@&quo 阅读全文

posted @ 2013-02-01 14:34 吕霖 阅读(2031) 评论(0) 推荐(2) 编辑

2012年1月11日

摘要: 先看截图:核心代码来自:http://www.markj.net/iphone-uiimage-pixel-color/如下所示,原代码有修改:- (void) touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event { if (self.hidden==YES) { //color wheel is hidden, so don't handle this as a color wheel event. [[self nextResponder] touchesEnded:touches withEvent:event]; ret 阅读全文

posted @ 2012-01-11 00:31 吕霖 阅读(827) 评论(0) 推荐(1) 编辑