上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 98 下一页
摘要: CGSize mSize = [info.nicksizeWithFont:[UIFontsystemFontOfSize:13.0f] constrainedToSize:CGSizeMake(MAXFLOAT, self.nickLabel.frame.size.height)]; 阅读全文
posted @ 2013-10-31 14:46 路在脚下, 阅读(156) 评论(0) 推荐(0)
摘要: - (void)drawRect:(CGRect)rect{ CGContextRef context = UIGraphicsGetCurrentContext(); CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGFloat locations[] = {0.0, 1.0};// 蓝色// NSArray* colors = [NSArray arrayWithObjects:(__bridge id)RGBCOLOR(4, 135, 243).CGColor, (__bridge id)RGBCOLOR... 阅读全文
posted @ 2013-10-30 18:45 路在脚下, 阅读(150) 评论(0) 推荐(0)
摘要: //// CommonUserMenu.m// Zhaocailing//// Created by zhaocailing on 13-10-17.// Copyright (c) 2013年 totem. All rights reserved.//#import "CommonUserMenu.h"#import "Constant.h"#import "DataModel.h"@implementation CommonUserMenu- (id)initWithFrame:(CGRect)frame{ self = [sup 阅读全文
posted @ 2013-10-30 11:33 路在脚下, 阅读(180) 评论(0) 推荐(0)
摘要: 对于 push,pop,都会调用 controller的 viewwillappear,只是 后者 直接 把controller给丢弃了,前者还被维护着,就像那个 买会员一样,走 支付流程,一直push,一直push,contrller是没有被释放掉的,因此当 发送通知的时候,只要 contrller注册通知了,并且 没有被移除掉,那么一切就ok,有时候 会在 viewwilldisappear里 写释放资源的代码,那是为了push的情况, 阅读全文
posted @ 2013-10-29 10:10 路在脚下, 阅读(206) 评论(0) 推荐(0)
摘要: - (void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; if (SharedAppDelegate.userInfo) { self.userMenu.gender = SharedAppDelegate.userInfo.gender; self.userMenu.dotImageView.hidden = !SharedAppDelegate.hasNewMsg; self.beatTimer = [NSTimerscheduledTimerWithTimeInterval:kBe... 阅读全文
posted @ 2013-10-28 14:28 路在脚下, 阅读(165) 评论(0) 推荐(0)
摘要: #define kReceiveCoinTime [NSString stringWithFormat:@"receiveCoinTime%d", SharedAppDelegate.userInfo.userID], 阅读全文
posted @ 2013-10-26 12:15 路在脚下, 阅读(135) 评论(0) 推荐(0)
摘要: //点击(button)领取的时间,-(void)receiveCoin{ self.coinStateLabel.text = @"招财币已领取"; self.coinBtn.userInteractionEnabled = NO; NSDate *now = [NSDate new]; unsigned units = NSMonthCalendarUnit|NSDayCalendarUnit|NSYearCalendarUnit; NSCalendar *mCal = [[NSCalendaralloc] initWithCalendarIdentifier:NSGr 阅读全文
posted @ 2013-10-26 11:38 路在脚下, 阅读(249) 评论(0) 推荐(0)
摘要: 1,cellforrow2,numberofrow3,heightforrow4,didselectrow, 阅读全文
posted @ 2013-10-26 11:37 路在脚下, 阅读(135) 评论(0) 推荐(0)
摘要: 1,数据源错了,-(void)adjustProvinceCityFormatByCityId:(int)cId andProvinceId:(int)pId{// 找到省份包含的所有城市 self.cityArray = [selfcityArrayByProvinCode:pId];// 定位具体城市 for (int i = 0;i < self.cityArray.count; i++) { CommonDistrctInfo *info = [self.cityArrayobjectAtIndex:i]; if (cId == info.idNumber) { ... 阅读全文
posted @ 2013-10-26 11:33 路在脚下, 阅读(195) 评论(0) 推荐(0)
摘要: -(void)receiveTodayCoin{ NSDate *now = [NSDate new]; unsigned units = NSMonthCalendarUnit|NSDayCalendarUnit|NSYearCalendarUnit; NSCalendar *mCal = [[NSCalendaralloc] initWithCalendarIdentifier:NSGregorianCalendar]; NSDateComponents *mComp = [mCal components:units fromDate:now]; NSDateComponents... 阅读全文
posted @ 2013-10-23 17:10 路在脚下, 阅读(155) 评论(0) 推荐(0)
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 98 下一页