摘要:
NSArray *viewcontrollers=self.navigationController.viewControllers;if (viewcontrollers.count>1) { if ([viewcontrollers objectAtIndex:viewcontrollers.c 阅读全文
摘要:
//搜索框 UIView *searchBarView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 58)]; searchBarView.backgroundColor = [UIColor whiteColor... 阅读全文
摘要:
/**1.今年1> 今天* 1分内: 刚刚* 1分~59分内:xx分钟前* 大于60分钟:xx小时前2> 昨天* 昨天 xx:xx3> 其他* xx-xx xx:xx2.非今年1> xxxx-xx-xx xx:xx*/-(NSString *)createtime{ NSDateFormatter... 阅读全文
摘要:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath这个代理方法的实现,在可见的页面是会重复绘制页面的,所以绝大部分人都会在这里做一些代码处理比如:... 阅读全文
摘要:
1.当程序调用支付宝/快捷支付客户端后,完成订单或者取消订单后无法回到APP页面。这个问题比较好解决,首先代码调用支付宝提交订单的方法里有一个Scheme的参数,这个是应用程序的Scheme。我这里是"WeCast.iHouse":[AlixLibServicepayOrder:orderStrin... 阅读全文
摘要:
1、UITableView的scrollDelegate问题下午遇到一个奇怪的问题,之前都没有注意过,由于A VC中要实现tableView和其他View位置的联动,所以实现了tableView的delegate中的scrollViewDidScroll方法,结果在点击商品push 商品详情VC B... 阅读全文
摘要:
自定义类CZQRView#import @class CZQRView;@protocol CZQRViewDelegate - (void) qrView:(CZQRView *) view didCompletedWithQRValue:(NSString *) qrValue;@end@int... 阅读全文
摘要:
//// ViewController.m// 二维码生成//#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@end@... 阅读全文
摘要:
转至http://blog.csdn.net/fengsh998/article/details/8691823API接口文档。https://developer.apple.com/library/mac/#documentation/Carbon/Reference/CoreText_Frame... 阅读全文
摘要:
RunTime简称运行时。就是系统在运行的时候的一些机制,其中最主要的是消息机制。对于C语言,函数的调用在编译的时候会决定调用哪个函数( C语言的函数调用请看这里 )。编译完成之后直接顺序执行,无任何二义性。OC的函数调用成为消息发送。属于动态调用过程。在编译的时候并不能决定真正调用哪个函数(事实证... 阅读全文