上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 98 下一页
摘要: 代理 有时候 等价于 把所有的 需要的数据塞给另一个类,让另外一个类来完成即可,比如 擦屁股,小的时候,你妈妈帮你擦,长大后 这件事情 你自己来做,只需要 把 纸 给你 就行了,也就是 把 必要的 数据给你就行了,,,, notificationView.iconImageView.image = [UIImage imageNamed:@"icon_medicine.png"]; notificationView.medicineId = medicineIndex; notificationView.medicineArray = medicineArray;... 阅读全文
posted @ 2013-07-03 15:49 路在脚下, 阅读(221) 评论(0) 推荐(0) 编辑
摘要: TNotificationView *notificationView = [[[UINibnibWithNibName:@"TNotificationView"bundle:nil]instantiateWithOwner:selfoptions:nil]objectAtIndex:0]; notificationView.commmonArray = commonArray; [notificationView selectedItem];-(void)awakeFromNib{ [self initData]; //self.medicin... 阅读全文
posted @ 2013-07-03 15:44 路在脚下, 阅读(249) 评论(0) 推荐(0) 编辑
摘要: -(CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component{ return 280;} 阅读全文
posted @ 2013-07-03 10:19 路在脚下, 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 一个原则:无论什么原因 导致 用户 正在 操作 的 内容 出现异常,停止,那么 软件 都应该 尽最大力量 去 恢复 用户所 期望的内容,比如,记录 用户录入的数据,这个是 必须的,同时呢,软件一个 很重要的特点 就 记忆功能,当问到 药品是否 记录吃药状态的时候,就像张总说的,那是当然的了,现在这个声音还在 脑海回荡, 阅读全文
posted @ 2013-07-03 10:15 路在脚下, 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 当 break的时候 会跳出 switch case 以及 里面的默认情况 default,如果是 嵌套的话,会同上 接着跳,如果 switch case外面 还有 执行代码 那么还会被执行到, 阅读全文
posted @ 2013-07-02 12:14 路在脚下, 阅读(635) 评论(0) 推荐(0) 编辑
摘要: [[UIApplicationsharedApplication] cancelAllLocalNotifications] notification.applicationIconBadgeNumber=1; ,那个数字, 阅读全文
posted @ 2013-07-02 11:24 路在脚下, 阅读(169) 评论(0) 推荐(0) 编辑
摘要: -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ switch (section) { case 0: return foodArray.count + 1; break; case 1: return sportArray.count + 1; break; case 2: return medicineArray.count + 1; break; case 3: ... 阅读全文
posted @ 2013-07-02 11:09 路在脚下, 阅读(180) 评论(0) 推荐(0) 编辑
摘要: plist,和 json 缓存 对于这两个来说,一个 是 写入对象,比如 nsobject,比如 nsstring,或者是自定义的 实体类,但是 要实现 那个 initwithcode 方法,而 json是写入的 字符串, 就是纯粹 json格式的字符串,而不是 @“”,这不是字符串,这是 对象, 阅读全文
posted @ 2013-07-01 18:34 路在脚下, 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1,-(void)setLocalNotification{ UILocalNotification *notification=[[UILocalNotificationalloc] init]; NSDate *now=[NSDatenew]; int period = 10; notification.fireDate = [now dateByAddingTimeInterval:period]; notification.timeZone=[NSTimeZonedefaultTimeZone]; notification.soundName = @"pig.c... 阅读全文
posted @ 2013-07-01 16:50 路在脚下, 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 两个项目 同一个 bundleid ,真机疯 了,识别不过来了, 阅读全文
posted @ 2013-07-01 16:09 路在脚下, 阅读(230) 评论(0) 推荐(0) 编辑
上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 98 下一页