09 2013 档案

摘要:570*285,566*284, 阅读全文
posted @ 2013-09-30 16:37 路在脚下, 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-30 14:37 路在脚下, 阅读(117) 评论(0) 推荐(0) 编辑
摘要:这个月:应该上 20,实际上了 21,在 招财铃 上了 16天,在768上了5天,刚才那个时间记错了,这个月:应该上 21,实际上了 22,在 招财铃 上了 16天,在768上了6天,刚才那个时间记错了,这个月:应该上 22(那一天算请假,艾坤的机子在呢,),实际上了 22,在 招财铃 上了 16天,在768上了6天, 阅读全文
posted @ 2013-09-30 10:29 路在脚下, 阅读(115) 评论(0) 推荐(0) 编辑
摘要:+ (NSString*)countStr:(int)count{ NSString* countStr = [NSString stringWithFormat:@"%d", count]; if (count >= 10000) { float c = count / 10000.0f; if (c - (int)c >= .1f) { countStr = [NSString stringWithFormat:@"%.1f万", c]; } else { countStr = [NSString stringWithFormat:@&q 阅读全文
posted @ 2013-09-30 09:40 路在脚下, 阅读(157) 评论(0) 推荐(0) 编辑
摘要:-(IBAction)editingChange:(id)sender{ UITextField *textField = (UITextField *)sender; if (textField.text.length == 11) { [self loadWinner:textField.text]; [self.searchFieldresignFirstResponder]; } if (textField.text.length > 0) { self.clearBtn.hidden = NO; }else{ self.clearBtn.hidden... 阅读全文
posted @ 2013-09-29 16:33 路在脚下, 阅读(219) 评论(0) 推荐(0) 编辑
摘要:- (void)sendMessage{ if ([MFMessageComposeViewControllercanSendText]) { MFMessageComposeViewController *picker = [[MFMessageComposeViewControlleralloc] init]; picker.messageComposeDelegate = self; NSLog(@"info.long code:%@", self.activityInfo.longcode); picker.recipients = [NSArray arra... 阅读全文
posted @ 2013-09-29 15:39 路在脚下, 阅读(158) 评论(0) 推荐(0) 编辑
摘要:- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image{ CGSize targetSize = CGSizeMake(image.size.width*4/sqrt(5.0f), image.size.width*2/sqrt(5.0f)); UIGraphicsBeginImageContext(targetSize); [image drawInRect:CGRectMake(image.size.width*(1/sq... 阅读全文
posted @ 2013-09-29 15:24 路在脚下, 阅读(185) 评论(0) 推荐(0) 编辑
摘要:1,0101,转换为 int类型 成 101,2, 越界问题,手机号码 11位呢,-2147483648到2147483647 阅读全文
posted @ 2013-09-29 12:10 路在脚下, 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-29 11:06 路在脚下, 阅读(102) 评论(0) 推荐(0) 编辑
摘要:当 frame是根据内容 大小计算出来的时候,是填充的,如果 内容小于frame,那么 默认是居中的,因此上面会有空袭, 阅读全文
posted @ 2013-09-29 10:03 路在脚下, 阅读(112) 评论(0) 推荐(0) 编辑
摘要:-(void)setInfos:(ZSTActivityInfo *)infos{ _infos = infos; self.mTextView.text = infos.participation; [self.mTableViewreloadData]; TTLog(@"winnerlist %d",infos.winnerlist.count);} 阅读全文
posted @ 2013-09-27 14:03 路在脚下, 阅读(76) 评论(0) 推荐(0) 编辑
摘要:点击 imageview还是 点击 button,点击效果,button好像更强大些, 阅读全文
posted @ 2013-09-27 10:49 路在脚下, 阅读(120) 评论(0) 推荐(0) 编辑
摘要:[self.tableViewsetAllowsSelection:NO]; lotteryCell.selectionStyle = UITableViewCellSelectionStyleBlue; 阅读全文
posted @ 2013-09-26 15:02 路在脚下, 阅读(98) 评论(0) 推荐(0) 编辑
摘要:一个位置 到另外一个位置,然后 用 uiview animation, 阅读全文
posted @ 2013-09-26 14:01 路在脚下, 阅读(98) 评论(0) 推荐(0) 编辑
摘要:可以使用appendString或appendFormat来对可变字符串操作:-(void)appendString: (Nsstring *) aString;-(void) appendFormat: (NSString *) Format;appendString接受参数aString,然后将其复制到接受对象的末尾。appendFormat类似,他将格式化的字符串附加在接受对象的末尾,而不是创建新的对象。 阅读全文
posted @ 2013-09-26 11:49 路在脚下, 阅读(1097) 评论(0) 推荐(0) 编辑
摘要:NScoding 是一个协议,主要有下面两个方法-(id)initWithCoder:(NSCoder *)coder;//从coder中读取数据,保存到相应的变量中,即反序列化数据-(void)encodeWithCoder:(NSCoder *)coder;// 读取实例变量,并把这些数据写到coder中去。序列化数据NSCoder 是一个抽象类,抽象类不能被实例话,只能提供一些想让子类继承的方法。NSKeyedUnarchiver 从二进制流读取对象。NSKeyedArchiver 把对象写到二进制流中去。 阅读全文
posted @ 2013-09-26 11:33 路在脚下, 阅读(192) 评论(0) 推荐(0) 编辑
摘要:typedefenum { ZCWScrollNumAnimationTypeNone, ZCWScrollNumAnimationTypeNormal, ZCWScrollNumAnimationTypeFromLast, ZCWScrollNumAnimationTypeRand, ZCWScrollNumAnimationTypeFast} ZCWScrollNumAnimationType;- (void)setNumber:(NSUInteger)number withAnimationType:(ZCWScrollNumAnimationType)type animati... 阅读全文
posted @ 2013-09-26 11:07 路在脚下, 阅读(124) 评论(0) 推荐(0) 编辑
摘要:uiviewcontroller ,UIResponder,nsobjectuitableviewcell ,uiview,uiresponder, 阅读全文
posted @ 2013-09-25 18:24 路在脚下, 阅读(124) 评论(0) 推荐(0) 编辑
摘要:1, scrollview,2,timer3,网络请求加载 到数据后,4,滚动什么,label背景一同滚动,还是 只滚动label,5,写在 controller里面 还是 cell里面,6,怎样实现循环滚动,让循环起来,7,滚动 就是位置的变化, 阅读全文
posted @ 2013-09-25 16:39 路在脚下, 阅读(135) 评论(0) 推荐(0) 编辑
摘要:[[UIApplicationsharedApplication] cancelAllLocalNotifications]; [[NSNotificationCenterdefaultCenter]cancelAllLocalNotifications]; 阅读全文
posted @ 2013-09-24 22:13 路在脚下, 阅读(155) 评论(0) 推荐(0) 编辑
摘要:case 3: { MedicineViewController *controller = [[MedicineViewControlleralloc] initWithNibName:@"MedicineViewController"bundle:nil]; [self.navigationController pushViewController:controller animated:YES]; [self performSelector:@selector(pushViewController:) withObject:con... 阅读全文
posted @ 2013-09-24 17:12 路在脚下, 阅读(151) 评论(0) 推荐(0) 编辑
摘要:原来p12是在 别的机子上用的,.cer文件只能在 生成 这个文件 上使用,.cer为了导出 p12用的, 阅读全文
posted @ 2013-09-24 15:45 路在脚下, 阅读(117) 评论(0) 推荐(0) 编辑
摘要:两处一致, 阅读全文
posted @ 2013-09-24 15:36 路在脚下, 阅读(107) 评论(0) 推荐(0) 编辑
摘要:1,两个标记,a进入b的时候 让b记住,如果b不方便记忆,那么让 a自己记住,出来的时候再判断,2,一个通知,两个地方 用,三个地方用,几个地方用 没有关系,关键的是 对同一个数据的操作,然后 就混乱了, 阅读全文
posted @ 2013-09-24 15:10 路在脚下, 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-24 14:09 路在脚下, 阅读(123) 评论(0) 推荐(0) 编辑
摘要:没有 里面套着 有 显示的是 没有,而实际上是 有,因此 要把有放到没有外面,然后就显示有了, 阅读全文
posted @ 2013-09-23 11:28 路在脚下, 阅读(170) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2013-09-23 10:30 路在脚下, 阅读(168) 评论(0) 推荐(1) 编辑
摘要:返回的时间戳 拯救了 革命啊,哈哈, 阅读全文
posted @ 2013-09-22 14:42 路在脚下, 阅读(109) 评论(0) 推荐(0) 编辑
摘要:1,一般情况下,两者是 一样的,valueforkey == objectforkey2,当 key是 以@开头的时候 ,如下:NSDictionary *dict = [NSDictionary dictionaryWithObject:@"theValue" forKey:@"@theKey"];// 注意这个 key 是以 @ 开头 NSString *value1 = [dict objectForKey:@"@theKey"]; NSString *value2 = [dict valueForKey:@"@the 阅读全文
posted @ 2013-09-22 14:15 路在脚下, 阅读(155) 评论(0) 推荐(0) 编辑
摘要:@implementation ResponseState+ (ResponseState*)responseWithDic:(NSDictionary *)dic{ ResponseState* response = [[ResponseStatealloc] init]; response.status = [[dic valueForKeyNullReplace:@"status"] intValue]; response.message = [dic valueForKeyNullReplace:@"message"]; response.rem 阅读全文
posted @ 2013-09-22 12:17 路在脚下, 阅读(361) 评论(0) 推荐(0) 编辑
摘要:改了一阵子 原来是 因为 budleidentifier,不一样,fuck, 阅读全文
posted @ 2013-09-22 11:54 路在脚下, 阅读(88) 评论(0) 推荐(0) 编辑
摘要:if (ringInfoArray.count == 0) { return ; } }else { [self showToast:resp.message]; } [self.commonTableViewreloadData]; [selfhideLoadingView]; 阅读全文
posted @ 2013-09-18 16:44 路在脚下, 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-15 15:30 路在脚下, 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-15 11:13 路在脚下, 阅读(86) 评论(0) 推荐(0) 编辑
摘要:1,二倍图 到一倍图 ,黑边没有了,2, 从psd裁图 总是 有 阴影,然后 换到 preview图片 工具 就好了, 阅读全文
posted @ 2013-09-15 11:01 路在脚下, 阅读(152) 评论(0) 推荐(0) 编辑
摘要:-(void)textFieldDidBeginEditing:(UITextField *)textField{// UIAlertView *prompt = [[UIAlertView alloc] initWithTitle:@"请输入起点:"// message:@"\n\n"// delegate:nil// cancelButtonTitle:@"取消"// otherButtonTitles:... 阅读全文
posted @ 2013-09-13 15:29 路在脚下, 阅读(536) 评论(0) 推荐(0) 编辑
摘要:bundle idp12,描述文件, 阅读全文
posted @ 2013-09-11 21:56 路在脚下, 阅读(134) 评论(0) 推荐(0) 编辑
摘要:要输入密码的, 阅读全文
posted @ 2013-09-11 16:58 路在脚下, 阅读(140) 评论(0) 推荐(0) 编辑
摘要:- (void) sendAppContent:(NSDictionary *)dic{ // 发送内容给微信 WXMediaMessage *message = [WXMediaMessage message]; message.title =@"asdfasdf"; WXAppExtendObject *ext = [WXAppExtendObject object]; ext.url = @"http://beta.pinla.com/plmobi/product/weixinproduct?nosign=true&pid=46356"; 阅读全文
posted @ 2013-09-11 16:23 路在脚下, 阅读(513) 评论(0) 推荐(0) 编辑
摘要:微信, 开发应用,第三方应用,服务器,;微信 要告诉 服务器 是否 手机安装 了第三方应用, 阅读全文
posted @ 2013-09-11 15:02 路在脚下, 阅读(118) 评论(0) 推荐(0) 编辑
摘要:+(NSMutableArray *)albumInfoListFromDic:(NSArray *)arr{ NSMutableArray *returnArray = [[NSMutableArrayalloc] init]; for (NSDictionary *dic in arr) { AlbumInfo *info = [[AlbumInfo alloc] init]; info.idNumber = [[dic valueForKeyNullReplace:@"id"]intValue]; info.uid = [[dic valueForKeyNullRe. 阅读全文
posted @ 2013-09-09 16:05 路在脚下, 阅读(204) 评论(0) 推荐(0) 编辑
摘要:self.friendInfo.albumArray, 与self.friendInfo.albumArray.count ,a = b; 与b = a;a 与 A,, 与 , 阅读全文
posted @ 2013-09-09 10:48 路在脚下, 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 16:27 路在脚下, 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 16:08 路在脚下, 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 15:41 路在脚下, 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 15:34 路在脚下, 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 15:11 路在脚下, 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 15:03 路在脚下, 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 14:38 路在脚下, 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 14:26 路在脚下, 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 14:22 路在脚下, 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 14:21 路在脚下, 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 14:19 路在脚下, 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 13:57 路在脚下, 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 13:55 路在脚下, 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 13:52 路在脚下, 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 13:49 路在脚下, 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 13:30 路在脚下, 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 13:21 路在脚下, 阅读(100) 评论(0) 推荐(0) 编辑
摘要:NSArray *temp = [TagItemInfo tagItemsArray:JSON]; if (temp.count == 0) { [self showToast:@"未找到匹配的数据!"]; return ; } tagsInfoArray = [TagItemInfo tagItemsArray:JSON]; 阅读全文
posted @ 2013-09-07 10:16 路在脚下, 阅读(106) 评论(0) 推荐(0) 编辑
摘要:private void getWeiboList(JSONObject json) throws JSONException { org.json.JSONArray jsonArray = json.getJSONArray("data");//第一个data if (jsonArray != null && jsonArray.length() > 0) { for (int i = 0; i 0) { for (int j = 0; j < jsonarray.length(); j++) {//一个榜的集合 jsona = json.. 阅读全文
posted @ 2013-09-05 17:30 路在脚下, 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-05 17:19 路在脚下, 阅读(147) 评论(0) 推荐(0) 编辑
摘要:-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{ self.sectionHeaderView = [[[UINibnibWithNibName:@"SectionHeaderView"bundle:nil]instantiateWithOwner:selfoptions:nil]objectAtIndex:0]; if (worksInfoArray.count > 0) { WorksInfo *workInfo = [worksInfo 阅读全文
posted @ 2013-09-05 14:32 路在脚下, 阅读(188) 评论(0) 推荐(0) 编辑
摘要:if (worksInfoArray.count > 0) {if (worksInfoArray) { 阅读全文
posted @ 2013-09-05 14:29 路在脚下, 阅读(134) 评论(0) 推荐(0) 编辑
摘要:1,viewdidload ,安装xib大小加载-----viewwillappear,layoutsubviews,布局view伸缩以下,或者变大或者变小-----》再向上面添加的 时候 必须 设置 frame,因为 之前的 已经固定,不会再调用 layoutsubviews也不会自动伸缩了,根据 xib的设置,因此需要手动设置 frame大小,让 子view的大小 跟父view的大小一致, 2,拉伸的设置,对上不变,对下不变, self.transactionView.frame = CGRectMake(0, 0, self.footView.frame.size.width, sel. 阅读全文
posted @ 2013-09-04 11:24 路在脚下, 阅读(276) 评论(0) 推荐(0) 编辑
摘要:一个view长在另一个view上,要设置frame;距离上面不变还是距离下面不变要看好,上定植下定植以上面为准 阅读全文
posted @ 2013-09-03 23:28 路在脚下, 阅读(121) 评论(0) 推荐(0) 编辑
摘要:uiscrollview 截获 touchbegin, 阅读全文
posted @ 2013-09-03 17:27 路在脚下, 阅读(120) 评论(0) 推荐(0) 编辑
摘要:相对,嵌套,递归,计算,变化, 阅读全文
posted @ 2013-09-02 18:02 路在脚下, 阅读(97) 评论(0) 推荐(0) 编辑
摘要:都是 不显示 超出边界的 部分,当 进入 边界的 范围内部,会显示 出来,最怕的 是 变化,嵌套着变化, 阅读全文
posted @ 2013-09-02 17:23 路在脚下, 阅读(79) 评论(0) 推荐(0) 编辑
摘要:- (void)scrollViewDidScroll:(UIScrollView *)scrollView;{ CGFloat y ; if (scrollView.contentOffset.y < 0) { y = scrollView.contentOffset.y; if (y < - 47*1.4) { self.headerView.bgImageView.frame = CGRectMake(self.tableViewHeaderView.frame.origin.x, -46 +(- 47*1.4/1.4), 320, self.headerV... 阅读全文
posted @ 2013-09-02 17:12 路在脚下, 阅读(194) 评论(0) 推荐(0) 编辑
摘要:1,层被其他层盖住了,2,层的大小 设置的 小了,或者大了,3,cliptobounds,clipsubviews4,加一层view,然后 cliptobounds(绝)5,拉伸给 拉跑了, 阅读全文
posted @ 2013-09-02 12:11 路在脚下, 阅读(153) 评论(0) 推荐(0) 编辑
摘要:- (void)awakeFromNib{ CGRect frame = self.bgImageView.frame; self.bgImageView.layer.anchorPoint = CGPointMake(.5f, 1.0f); self.bgImageView.frame = frame;} 阅读全文
posted @ 2013-09-02 10:36 路在脚下, 阅读(148) 评论(0) 推荐(0) 编辑
摘要:////生日数字的 转化 19900615-(NSDate *)dateFromBirthDay:(NSString *)birthdayString{ NSDateFormatter *formatter = [[NSDateFormatteralloc]init]; [formatter setDateFormat:@"yyyyMMdd"]; return [formatter dateFromString:birthdayString];// NSRange yearRange = NSMakeRange(0, 4);// int mYear = [[birthday 阅读全文
posted @ 2013-09-01 16:14 路在脚下, 阅读(155) 评论(0) 推荐(0) 编辑
摘要:当 给 图片 添加边框的 时候,会感觉 页面 效果档次高了一些,更加细致了,真的是这样,一个 细小的 变化,带来的 效果 真的很好,比如 加个 阴影 之类的,感觉是 领边 又整理了一下,好细致, 阅读全文
posted @ 2013-09-01 14:33 路在脚下, 阅读(127) 评论(0) 推荐(0) 编辑
摘要:原因一,计算方法,统一起来, CGSize contentSize = [ChatView sizeWithText:info.content font:[UIFont systemFontOfSize:13.0f] constrainedSize:CGSizeMake(labelWidth, MAXFLOAT)];原因二:计算里面 表情没有初始化导致,也算 系统行为吧 阅读全文
posted @ 2013-09-01 11:31 路在脚下, 阅读(127) 评论(0) 推荐(0) 编辑