08 2013 档案

摘要:1,对于 通知,在发通知的 时候,viewdidload 注册过的 通知的页面,都会发一遍的,因此 可以把注册通知的 方法写到viewwillappear里面, 其它页面没有出来,因此只会调用一次,2,alertview 在任何地方都是可以随时弹出的,而showtoast是不能的,它是需要长在view上面的, 阅读全文
posted @ 2013-08-31 18:09 路在脚下, 阅读(112) 评论(0) 推荐(0) 编辑
摘要:viewwillappear 在 挂起 到激活是 不会调用的,而在 controller 之间切换的 时候才会被调用的, 阅读全文
posted @ 2013-08-31 16:10 路在脚下, 阅读(172) 评论(0) 推荐(0) 编辑
摘要:1,每天筛选,2,只维护 commonarray,用药状态,声音开关,item 开关都 记录到 commonarray 缓存里面, 阅读全文
posted @ 2013-08-31 15:49 路在脚下, 阅读(129) 评论(0) 推荐(0) 编辑
摘要:- (void)viewDidLoad{ [superviewDidLoad]; [[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(notificationBadgeNumber) name:NotificationListLoadedobject:nil];}- (void)viewWillDisappear:(BOOL)animated{ [super viewWillDisappear:animated];[[NSNotificationCenter defaultCenter] rem... 阅读全文
posted @ 2013-08-31 15:43 路在脚下, 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-31 10:22 路在脚下, 阅读(120) 评论(0) 推荐(0) 编辑
摘要:self showloadingviewself showtoastself showalertview, 阅读全文
posted @ 2013-08-30 17:05 路在脚下, 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-30 14:19 路在脚下, 阅读(126) 评论(0) 推荐(0) 编辑
摘要:@property(nonatomic,strong) IBOutletUITextView *signTextView; 阅读全文
posted @ 2013-08-30 11:23 路在脚下, 阅读(124) 评论(0) 推荐(0) 编辑
摘要:1,didendDragging2,reloadTableViewDataSource3,doneLoadingData4,egoRefreshScrollViewDataSourceDidFinishedLoading/[scrollView setContentInset:UIEdgeInsetsMake(0.0f, 0.0f, 0.0f, 0.0f)];5,didendDraggingscrollView.contentInset = UIEdgeInsetsMake(60.0f, 0.0f, 0.0f, 0.0f);当 reloadingdata的时间 极短的时候,变先是 设置为 0然 阅读全文
posted @ 2013-08-29 14:25 路在脚下, 阅读(292) 评论(0) 推荐(0) 编辑
摘要:UIEdgeInsetsZeroDefines a set of edge insets where all of the values are 0 阅读全文
posted @ 2013-08-29 13:59 路在脚下, 阅读(141) 评论(0) 推荐(0) 编辑
摘要:scrollView.bounds.origin.y = self.tableview.contentoffset.y,contentoffset:偏移出 当前 scrollview frame的 内容;当 scrollview滑动 到最下面的 时候,contentSize.height = contentoffset.y + scrollview.frame.height;滑动到下面,当 contentsize contentSize;contentsize 在 数据源没有变化之前是 不会变化的,而 当滑动的时候,contentoffset相对 frame的位置 是变化的, 阅读全文
posted @ 2013-08-29 11:48 路在脚下, 阅读(361) 评论(0) 推荐(0) 编辑
摘要:if (_refreshHeaderView == nil) {EGORefreshTableHeaderView *view = [[EGORefreshTableHeaderViewalloc] initWithFrame:CGRectMake(0.0f, 0.0f - self.tableView.bounds.size.height, self.view.frame.size.width, self.tableView.bounds.size.height)];view.delegate = self;[self.tableView addSubview:view];_refresh. 阅读全文
posted @ 2013-08-29 10:44 路在脚下, 阅读(851) 评论(0) 推荐(0) 编辑
摘要:[[NSUserDefaultsstandardUserDefaults] setObject:_lastUpdatedLabel.textforKey:@"EGORefreshTableView_LastRefresh"];[[NSUserDefaultsstandardUserDefaults] synchronize]; 阅读全文
posted @ 2013-08-29 09:42 路在脚下, 阅读(133) 评论(0) 推荐(0) 编辑
摘要:- (void)displayIndicator{ if (_indicator == nil) { _indicator = [[UIActivityIndicatorViewalloc] initWithFrame:CGRectMake((self.frame.size.width- self.frame.size.height) / 2 - 60, 0.0f, self.frame.size.height, self.frame.size.height)]; _indicator.activity... 阅读全文
posted @ 2013-08-29 09:36 路在脚下, 阅读(169) 评论(0) 推荐(0) 编辑
摘要:2013-08-27 15:19:14.363 Zhaocailing[5346:907] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM insertObject:atIndex:]: index 4294967295 beyond bounds for empty array'1,褒奖2,自己的信息,家穷创业,3,钢需4,大众音乐5,版权6,投资a,会成功,会出名,好好做吧, 讲理念,讲愿景,高举高打 会 冲破 小应用 ,使 阅读全文
posted @ 2013-08-27 15:20 路在脚下, 阅读(778) 评论(0) 推荐(0) 编辑
摘要:-(void)storeSettingChatList:(UITapGestureRecognizer *)sender{ if (sender.state == UIGestureRecognizerStateEnded) { UIView *gestureView =sender.view; MessageListInfo *info = [self.dataArray objectAtIndex:gestureView.tag]; [self.dataArray removeObject:info]; [self.dataArray insertObject:i... 阅读全文
posted @ 2013-08-27 14:26 路在脚下, 阅读(136) 评论(0) 推荐(0) 编辑
摘要:1,维护 一个置顶列表,即可,与服务器没有关系,只是 前台一个显示策略,跟 爱康360 里面的 用药提醒设置是 一样的, 也是本地记忆的,//写入缓存列表-(void)storeSettingChatList:(UITapGestureRecognizer *)sender{ if (sender.state == UIGestureRecognizerStateEnded) { UIView *gestureView =sender.view; MessageListInfo *info = [self.dataArray objectAtIndex:gestureView.t... 阅读全文
posted @ 2013-08-27 11:41 路在脚下, 阅读(177) 评论(0) 推荐(0) 编辑
摘要:- (void)scrollViewDidScroll:(UIScrollView *)scrollView;{ CGFloat y ; if (scrollView.contentOffset.y < 0) { y = scrollView.contentOffset.y; TTLog(@"%f",y); // self.headerView.bgImageView.frame = CGRectMake(self.tableViewHeaderView.frame.origin.x, y - 1, 320, ORIGIN_HEIGHT - y); if (y < 阅读全文
posted @ 2013-08-26 17:17 路在脚下, 阅读(130) 评论(0) 推荐(0) 编辑
摘要:tableView.contentOffset.y + tableview.frame.size.height = tableview.contentSize.height;- (void)scrollTableViewToBottom:(BOOL)animated{ [UIViewbeginAnimations:nilcontext:NULL]; [UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIViewsetAnimationDuration:0.35f]; self.tableV... 阅读全文
posted @ 2013-08-26 10:46 路在脚下, 阅读(162) 评论(0) 推荐(0) 编辑
摘要:// self.commonArray = commonArray;//测试 下乱的感觉 set self.dailyAlarmArray = [selfpickupTimeArrayFromScheduleAlarmArray:self.commonArray]; get 阅读全文
posted @ 2013-08-24 15:02 路在脚下, 阅读(138) 评论(0) 推荐(0) 编辑
摘要:NSMutableArray *returnArr = [[NSMutableArrayalloc] init]; [returnArr removeAllObjects]; 阅读全文
posted @ 2013-08-24 11:42 路在脚下, 阅读(153) 评论(0) 推荐(0) 编辑
摘要:因为网络请求是 异步的,那么 就必须 把 网络请求后的操作 写在 请求回来么,那么方法命名 就必须 是 网络请求 和加载数据因此没有办法 将方法 按照自己 的方式并排的 放在哪里,而是钻过来钻过去,只要 异步就会 出现 同步问题,真他妈 恶心人,只有 发通知 告诉 大家了,当 数据,潮水 来的 时候,发个 通知,开始 撤离, 阅读全文
posted @ 2013-08-24 09:15 路在脚下, 阅读(155) 评论(0) 推荐(0) 编辑
摘要:好像 网络请求 和 view 和 controller是 连在一块的,分不开的, 阅读全文
posted @ 2013-08-24 08:39 路在脚下, 阅读(105) 评论(0) 推荐(0) 编辑
摘要:1、@synchronizedstatic InstanceClass *instance;+ (InstanceClass *)defaultInstance{ @synchronized (self){ if (instance == nil) { instance = [[InstanceClass alloc] init]; } } return instance;}2、GCDstatic InstanceClass *instance;+ (InstanceClass *)defaultInstance{ ... 阅读全文
posted @ 2013-08-24 08:30 路在脚下, 阅读(159) 评论(0) 推荐(0) 编辑
摘要:-(IBAction)jumpToHome:(id)sender{ NSArray *controllerArr = self.navigationController.viewControllers; for (NSObject *obj in controllerArr) { if ([obj isKindOfClass:[HomeViewController class]]) { HomeViewController *controller = (HomeViewController *)obj; [self.navigationController pop... 阅读全文
posted @ 2013-08-23 15:12 路在脚下, 阅读(139) 评论(0) 推荐(0) 编辑
摘要:if (albumArray.count == 2) {//两张图片 AlbumInfo *info = [albumArray objectAtIndex:0]; self.firstBtn.hidden = NO; self.firstBtn.tag = info.idNumber; if (info.image) { [self.firstBtnsetBackgroundImage:info.imageforState:UIControlStateNormal]; if (info.isLast) { [self.firstBtn... 阅读全文
posted @ 2013-08-23 14:45 路在脚下, 阅读(165) 评论(0) 推荐(0) 编辑
摘要:对于两个类,一个类需要 让另一个类 做点事,那么 就在 这个类 里面 写代理,这可以 是一个准则, 阅读全文
posted @ 2013-08-23 13:41 路在脚下, 阅读(103) 评论(0) 推荐(0) 编辑
摘要:-(UITapGestureRecognizer *)clickOnceTapGestureFactory{ UITapGestureRecognizer *clickOnceGes = [[UITapGestureRecognizeralloc] initWithTarget:selfaction:@selector(deletePic:)]; clickOnceGes.numberOfTapsRequired = 1; //设定点击次数 return clickOnceGes;}-(UILongPressGestureRecognizer *)longPressGesFactory{... 阅读全文
posted @ 2013-08-23 11:15 路在脚下, 阅读(163) 评论(0) 推荐(0) 编辑
摘要:1,脏数据2,默认数据3,缓存数据,让用户感觉到 不 空荡荡,水管有水, 阅读全文
posted @ 2013-08-23 10:33 路在脚下, 阅读(115) 评论(0) 推荐(0) 编辑
摘要:原来 imageview还有 一个加载的过程,在加载到之前 会显示 其 背景的颜色, 阅读全文
posted @ 2013-08-23 10:09 路在脚下, 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-22 17:24 路在脚下, 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-22 16:07 路在脚下, 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-22 16:06 路在脚下, 阅读(103) 评论(0) 推荐(0) 编辑
摘要:- (void)setFaceShowing:(BOOL)faceShowing{ if (self.faceShowing == faceShowing) { return; } _faceShowing = faceShowing;}系统行为, 阅读全文
posted @ 2013-08-22 15:09 路在脚下, 阅读(152) 评论(0) 推荐(0) 编辑
摘要:Bool faceShowing;if (self.faceShowing == YES) { return; }if (!self.faceShowing) { return; } 阅读全文
posted @ 2013-08-22 14:21 路在脚下, 阅读(144) 评论(0) 推荐(0) 编辑
摘要:notification.fireDate = [now dateByAddingTimeInterval:period];//是在今天的基础上添加的 notification.repeatInterval = kCFCalendarUnitDay; 阅读全文
posted @ 2013-08-21 20:48 路在脚下, 阅读(113) 评论(0) 推荐(0) 编辑
摘要:-(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate{ if (scrollView.contentOffset.y 60) { if (districtButtonTag == 210) { if (worksHasMore) { worksPageIndex = worksPageIndex + 1; [self loadWorksData]; } }else{ ... 阅读全文
posted @ 2013-08-20 17:50 路在脚下, 阅读(216) 评论(0) 推荐(0) 编辑
摘要:NSString *str = [NSString stringWithFormat:@"%.3f万",[info.flower floatValue]/10000]; 阅读全文
posted @ 2013-08-20 17:29 路在脚下, 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-20 14:55 路在脚下, 阅读(166) 评论(0) 推荐(0) 编辑
摘要:1,当 满足 分页的时候,有可能一页放不下的 时候,需要 添加 加载更多,2, 当满足 在 不离开当前页面 且不请求的时候,数据 会增多或者减少的时候,要加 下拉刷新, 阅读全文
posted @ 2013-08-20 11:04 路在脚下, 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-19 16:36 路在脚下, 阅读(101) 评论(0) 推荐(0) 编辑
摘要:commond + option + esc, 阅读全文
posted @ 2013-08-19 16:16 路在脚下, 阅读(135) 评论(0) 推荐(0) 编辑
摘要:[self.navigationController presentedViewController:navi animated:YES]; 阅读全文
posted @ 2013-08-19 14:20 路在脚下, 阅读(146) 评论(0) 推荐(0) 编辑
摘要://删除图片-(void)deletePic:(id)sender{ UITapGestureRecognizer *gesture = (UITapGestureRecognizer *)sender; UIView *gestureView =gesture.view; [self.albumCellDelegate deletePic:gestureView.tag];} 阅读全文
posted @ 2013-08-19 13:41 路在脚下, 阅读(181) 评论(0) 推荐(0) 编辑
摘要:1, UIButton *focusBtn;//指向点击的button2, [selfshowToast:@"已关注!"]; info.isFollow = YES; [self.commonTableView reloadData];a,水管记忆,水记忆b,墙壁记忆,人记忆c,结构记忆,内容记忆, 阅读全文
posted @ 2013-08-19 10:38 路在脚下, 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-19 10:37 路在脚下, 阅读(95) 评论(0) 推荐(0) 编辑
摘要:notification.fireDate = [now dateByAddingTimeInterval:60];//是在今天的基础上添加的 // notification.repeatInterval = kCFCalendarUnitDay; notification.repeatInterval = kCFCalendarUnitMinute; 阅读全文
posted @ 2013-08-18 17:34 路在脚下, 阅读(177) 评论(0) 推荐(0) 编辑
摘要:,如果都是 alloc init,那么每次都会调用 ,一个是数据加载完了以后,一个是 view要显示的时候,如果不总是 alloc,那么 需要检测数据更新的话 就用 viewwillappear,在 没有重新 alloc,在view出现的 时候需要做些改变的时候,需要把 方法加到 viewwillappear里面 阅读全文
posted @ 2013-08-18 14:45 路在脚下, 阅读(142) 评论(0) 推荐(0) 编辑
摘要:for (NotificationItem *item in alarmArr) { long long nowTimeNumber = [self timeNumberFromNow]; if (item.time < [self timeNumberFromNow] && !item.isRead) { i++; } } 阅读全文
posted @ 2013-08-18 09:52 路在脚下, 阅读(184) 评论(0) 推荐(0) 编辑
摘要:并且 单行的时候 也不换位置的, 阅读全文
posted @ 2013-08-17 14:23 路在脚下, 阅读(125) 评论(0) 推荐(0) 编辑
摘要:[NSThreadsleepForTimeInterval:2];//延迟启动时间 阅读全文
posted @ 2013-08-17 13:45 路在脚下, 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-17 13:42 路在脚下, 阅读(101) 评论(0) 推荐(0) 编辑
摘要:viewwilappear:里有的 网络请求,怪被类,[selfloadFromCache]; [selfloadPersonnalInfo:nil]; 阅读全文
posted @ 2013-08-17 13:36 路在脚下, 阅读(137) 评论(0) 推荐(0) 编辑
摘要:if ([info.iscover intValue]) { return info.pic; }if(info.iscover) { returninfo.pic; } 阅读全文
posted @ 2013-08-16 15:36 路在脚下, 阅读(140) 评论(0) 推荐(0) 编辑
摘要:button上加的方法是可以 去掉的, [NSObjectcancelPreviousPerformRequestsWithTarget:self];,诸如此类,还有 观察者,通知,都是 可以去掉的, 阅读全文
posted @ 2013-08-16 14:25 路在脚下, 阅读(168) 评论(0) 推荐(0) 编辑
摘要:[worksArray removeObjectAtIndex:indexPath.row];可以修改,可以插入,可以删除,而nsarray是不可变的, 阅读全文
posted @ 2013-08-16 09:55 路在脚下, 阅读(148) 评论(0) 推荐(0) 编辑
摘要:, controller.allowsEditing = YES; UIImage* image = [info objectForKey:UIImagePickerControllerEditedImage];66k,660k, 阅读全文
posted @ 2013-08-14 10:36 路在脚下, 阅读(350) 评论(0) 推荐(0) 编辑
摘要:, 阅读全文
posted @ 2013-08-12 18:05 路在脚下, 阅读(182) 评论(0) 推荐(0) 编辑
摘要:-(void)gesture{ UISwipeGestureRecognizer * leftRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(segmentButtonClick:)]; leftRecognizer.direction = UISwipeGestureRecognizerDirectionRight; leftRecognizer.cancelsTouchesInView = YES; UISwipeGestureRecognizer * righ... 阅读全文
posted @ 2013-08-12 10:22 路在脚下, 阅读(206) 评论(0) 推荐(0) 编辑
摘要:难缠点:1,时间转换,2,融合,分开,3,筛选,(开关是否打开;时间是否是当天;)4,开关切换,5,view 结构的 构建,多行文本的支持,6,何时 对提醒数据的更新,7,对月的 处理,每月几号的情况,按照月的提醒,8,对 吃药状态的重置,对 提醒数字的重置,9,缓存的清理,方案:提醒数字:其实这个数字对于 直接从 通知提醒 里面 进入程序 是没有意义的,只有 有提醒了,也没有处理,而是点击图标进入程序的,这个数字是 做提醒用的。方案一:shouldNumber(从一天内的所有的通知里面,比当前时间小的都认为是 应该读的通知) - trueNumber(进入 didreceiveLocalno 阅读全文
posted @ 2013-08-11 19:20 路在脚下, 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-11 19:02 路在脚下, 阅读(112) 评论(0) 推荐(0) 编辑
摘要:[self.navigationControllerpresentModalViewController:common animated:YES];在大大的活体 面前 铺了一层 登陆皮肤而已,之后 dismiss掉,一切还是之前的了,也就是 说不 双击home 键 去关闭程序的话,内存中 还是一片 适宜生存的 园地, 阅读全文
posted @ 2013-08-11 15:09 路在脚下, 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-11 12:19 路在脚下, 阅读(139) 评论(0) 推荐(0) 编辑
摘要:1,尺寸大小2,后缀名的 更改, 阅读全文
posted @ 2013-08-10 15:43 路在脚下, 阅读(159) 评论(0) 推荐(0) 编辑
摘要:SharedAppDelegate.window.frame.size.height 阅读全文
posted @ 2013-08-09 15:55 路在脚下, 阅读(133) 评论(0) 推荐(0) 编辑
摘要:blogListCell.selectionStyle = UITableViewCellSelectionStyleNone; blogListCell.userInteractionEnabled = NO; 阅读全文
posted @ 2013-08-08 17:48 路在脚下, 阅读(150) 评论(0) 推荐(0) 编辑
摘要:类方法调用 实例 方法,是不kuo xue的, 阅读全文
posted @ 2013-08-08 17:10 路在脚下, 阅读(113) 评论(0) 推荐(0) 编辑
摘要:1,for (int i = 0 ; i< tempArr.count; i++) { MessageDetailInfo *info = [tempArr objectAtIndex:i]; for (int j = 0; j<self.dataArray.count; j++) { MessageDetailInfo *messInfo = [self.dataArray objectAtIndex:j]; if (messInfo.idNumber == info.idNumber) { continue; } [self... 阅读全文
posted @ 2013-08-07 14:06 路在脚下, 阅读(185) 评论(0) 推荐(0) 编辑
摘要:-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ return [[[self heightArray]objectAtIndex:indexPath.row]floatValue];//几百个 heightArray,}-(NSArray *)heightArray{ NSMutableArray *arr = [[NSMutableArrayalloc] init]; for (MessageDetailInfo *info inself.data.. 阅读全文
posted @ 2013-08-07 13:45 路在脚下, 阅读(238) 评论(0) 推荐(0) 编辑
摘要:1, NSMutableArray *tempArr = [MessageDetailInfo messageDetailInfoListFromDic:json];//不用new,指向那个不为空的arr,2,-(void)addArray:(NSMutableArray *)tempArr{ if (!self.dataArray) { self.dataArray = [NSMutableArray array]; } for (int i = 0 ; i< tempArr.count; i++) { [self.dataArray addObject:[temp... 阅读全文
posted @ 2013-08-07 11:31 路在脚下, 阅读(133) 评论(0) 推荐(0) 编辑
摘要:UIImage* image = [[UIImageimageNamed:@"conversation_field_bg.png"] stretchableImageWithLeftCapWidth:14topCapHeight:14]; [self.bgButtonsetBackgroundImage:[[UIImageimageNamed:@"conversation_bg.png"] stretchableImageWithLeftCapWidth:22topCapHeight:30] forState:UIControlStateNormal]; 阅读全文
posted @ 2013-08-07 10:57 路在脚下, 阅读(128) 评论(0) 推荐(0) 编辑
摘要:1,注册观察,发送通知,马上调用,哪怕是 reloaddata,只是有时候 看不到,默默的执行,2,home-->钝化---》激活 ,然后 会调用 viewwillappear, 阅读全文
posted @ 2013-08-06 22:54 路在脚下, 阅读(113) 评论(0) 推荐(0) 编辑
摘要:1,层被 盖住了,tableview从天上来2,textview 多行,field单行,3,contentoffset,contentinset,4,keyboad 发通知,获取 duration时间,保持同步,5,- (void)keyboardWillShow:(NSNotification*)notification { CGRect _keyboardRect = [[[notification userInfo] objectForKey:_UIKeyboardFrameEndUserInfoKey] CGRectValue]; [UIViewbeginAnimations:nil. 阅读全文
posted @ 2013-08-06 15:15 路在脚下, 阅读(173) 评论(0) 推荐(0) 编辑
摘要:发起 一个 http请求,然后创建一个连接,在 请求,响应的报文里面 会有 cookie这个 东西 由浏览器来记忆,服务器 可以 给cookie里面 塞很多的东西,如果 客户端 不手动读取的话 ,那么 一旦断开 连接,那么 就丢失了,如果客户端需要的 话,那么 可以从这个 报文里面读取出来,然后 把cookie保存到本地,下次发请求连接的 时候 可以为 cookie进行 手动设置,一次来 作为 获取信息的 凭证,-----劣质程序员, 阅读全文
posted @ 2013-08-06 11:32 路在脚下, 阅读(588) 评论(0) 推荐(0) 编辑
摘要:friend_conservation_bgfriend_conversation_bg.png, [self.bgButtonsetBackgroundImage:[[UIImageimageNamed:@"conversation_bg.png"] stretchableImageWithLeftCapWidth:10topCapHeight:30] forState:UIControlStateNormal];xy方向 找 两根线 来 拉伸,横着切 一根线 为了 y方向,竖着 切一根线 是 x方向, 阅读全文
posted @ 2013-08-05 15:58 路在脚下, 阅读(167) 评论(0) 推荐(0) 编辑
摘要:1,删除一个 ,添加一个,不断的 删除 通知,添加通知2,添加的这个通知永远 小于现在的 时刻点,因此 只要刚 一添加进去,马上 会触发这个通知,一次 要小心,一定 是小于现在的时间 就不要再进行了,只能添加未来的时刻,一旦这个时刻 过去了,那么就不要 再 向里面添加了,18 and life, 阅读全文
posted @ 2013-08-04 14:40 路在脚下, 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-04 14:02 路在脚下, 阅读(112) 评论(0) 推荐(0) 编辑
摘要:for (NotificationItem *t incommonArray) { TTLog("commonArray %d count %d",t.isOpenNotification,commonArray.count); } [TTCacheUtilwriteObject:commonArraytoFile:COMMONARRAY]; NSMutableArray *commonArray1 = [TTCacheUtil objectFromFile:COMMONARRAY]; for (NotificationItem *t in commonArr... 阅读全文
posted @ 2013-08-03 16:03 路在脚下, 阅读(142) 评论(0) 推荐(0) 编辑
摘要:那个闹铃 状态记忆好不蛋疼,其实是记住了的, if (self.user) {//加载个人信息的 过程在 appdelegatge里面, user = self.user; [selfisShouldUpdate]; }else{ [selfloadPersonnalInfo:nil];//如果appdelegate加载失败,才会在本页面进行加载个人信息 }-(void)isShouldUpdate{ //根据更新时间来判断的 NSUserDefaults *userDefault = [NSUserDefaultsstandardUserDefaults]; no... 阅读全文
posted @ 2013-08-03 16:01 路在脚下, 阅读(177) 评论(0) 推荐(0) 编辑
摘要:viewdidload 加载数据 先调用 然后 调用 viewwillappear呈现视图, 阅读全文
posted @ 2013-08-03 14:41 路在脚下, 阅读(118) 评论(0) 推荐(0) 编辑
摘要:1,2,3,4,5, 阅读全文
posted @ 2013-08-03 10:40 路在脚下, 阅读(231) 评论(0) 推荐(0) 编辑
摘要:[selftimeArray];//item---->medicineArray+sugarCheckArray+referralArray---->commonarray--->sortedCommonArray ---->timeArray。。。sortedCommonArray ---->arrayFinal----->alarmarray 阅读全文
posted @ 2013-08-01 23:28 路在脚下, 阅读(160) 评论(0) 推荐(0) 编辑
摘要:- (void)scrollViewDidScroll:(UIScrollView *)scrollView;{ CGFloat y ; if (scrollView.contentOffset.y < 0) { y = scrollView.contentOffset.y; self.headerView.bgImageView.frame = CGRectMake(self.tableViewHeaderView.frame.origin.x, y - 1, 320, ORIGIN_HEIGHT - y); }} 阅读全文
posted @ 2013-08-01 17:19 路在脚下, 阅读(159) 评论(0) 推荐(0) 编辑
摘要:UISwipeGestureRecognizer * leftRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(segmentButtonClick:)]; leftRecognizer.direction = UISwipeGestureRecognizerDirectionRight; leftRecognizer.cancelsTouchesInView = YES; UISwipeGestureRecognizer * rightRecognizer = [[U... 阅读全文
posted @ 2013-08-01 15:05 路在脚下, 阅读(145) 评论(0) 推荐(0) 编辑
摘要:self.commonTableView.tableHeaderView = self.tableViewHeaderView; 阅读全文
posted @ 2013-08-01 14:15 路在脚下, 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-01 13:23 路在脚下, 阅读(121) 评论(0) 推荐(0) 编辑