摘要: -(void)changeButtonFont:(UIView *)aView withColorFlag:(int) i{ if ([aView isKindOfClass:[UILabel class]]) { UILabel *lb = (UILabel *)aView; if (i==1) { [lb setTextColor:[UIColor whiteColor]]; }else { [lb setFont:[UIFontsystemFontOfSize:13]]; [lb setTextColor:[UIColor blackCol... 阅读全文
posted @ 2012-10-08 17:04 xiaoxiaoxigua 阅读(1862) 评论(0) 推荐(0) 编辑
摘要: 一 、 1、直接在需要传递数据的文件种声明protocol。 A.h//需要传递数据的文件 @property(retain,nonatomic)id<FinanceStreetDelegate> delegate; @end @protocol FinanceStreetDelegate <NSObject> -(void)showCreditInfo:(NSString*)userId; @end A.m中协议的方法,通过参数传递数据 [self.delegate showCreditInfo:@"23"]; ... 阅读全文
posted @ 2012-10-08 16:18 xiaoxiaoxigua 阅读(776) 评论(0) 推荐(0) 编辑
摘要: 1.webview UIWebView *photoWebView; NSURL *url =[NSURL URLWithString:urlString]; NSURLRequest *request =[NSURLRequest requestWithURL:url]; [photoWebView loadRequest:request];2、uiimageview NSURL *url=[NSURLURLWithString:url]; UIImage *imagea = [UIImageimageWithData: [NSDatadata... 阅读全文
posted @ 2012-10-08 15:32 xiaoxiaoxigua 阅读(213) 评论(0) 推荐(0) 编辑