2015年3月23日
摘要:
看一下这篇文章,非常不错,并在此感谢这篇文章的作者。惯例,先写出嵌入支付宝的核心代码- (IBAction)payWithAli:(UIButton *)sender { //生成订单信息NSString *orderString=[AlipayRequestConfig genOrderWi...
阅读全文
posted @ 2015-03-23 16:46
lgphp
阅读(327)
推荐(0)
2015年2月2日
摘要:
Lambda表达式是Java8的新功能,所以需要下载JDK8以及设置IDE里项目使用的jdk为jdk8和编译level也设置成1.8Intellij IDEA选择菜单File–Project Structure–Project中,修改Project language level为8.0的那个选项.n...
阅读全文
posted @ 2015-02-02 11:14
lgphp
阅读(206)
推荐(0)
2015年1月31日
摘要:
计算单元格高度,在自定义cell中-(void) resizeTheHeight{ CGFloat contentWidth = 280; UIFont *font = [UIFont fontWithName:@"Arial" size:14]; CGSize s...
阅读全文
posted @ 2015-01-31 10:15
lgphp
阅读(355)
推荐(0)
2015年1月14日
摘要:
ios中相机全是英文怎么办在项目属性里info增加localizations 下面的item0 为简体中文即可APP 标题显示中文使用预处理文件
阅读全文
posted @ 2015-01-14 17:42
lgphp
阅读(183)
推荐(0)
2014年11月20日
摘要:
http://blog.sina.com.cn/s/articlelist_1935098904_1_1.html、获取全局的Delegate对象,这样我们可以调用这个对象里的方法和变量:[(MyAppDelegate*)[[UIApplicationsharedApplication] deleg...
阅读全文
posted @ 2014-11-20 02:23
lgphp
阅读(129)
推荐(0)
摘要:
1、获取全局的Delegate对象,这样我们可以调用这个对象里的方法和变量:[(MyAppDelegate*)[[UIApplicationsharedApplication] delegate] MyMethodOrMyVariable];2、获得程序的主Bundle:NSBundle *bund...
阅读全文
posted @ 2014-11-20 02:23
lgphp
阅读(116)
推荐(0)
摘要:
#import@interface ViewController : UIViewController@property (retain, nonatomic) IBOutlet UIImageView *imgV;- (IBAction)openCamera:(id)sender;- (IBAct...
阅读全文
posted @ 2014-11-20 02:21
lgphp
阅读(286)
推荐(0)
摘要:
相册 iphone的相册包含摄像头胶卷+用户计算机同步的部分照片。用户可以通过UIImagePickerController类提供的交互对话框来从相册中选择图像。但是,注意:相册中的图片机器路径无法直接从应用程序访问,只能通过终端用户去选择和使用相册图片 应用程序包 应用程序包可能会将图像与...
阅读全文
posted @ 2014-11-20 02:19
lgphp
阅读(1776)
推荐(0)
摘要:
AFNetwork是一个轻量级的网络请求api类库。是以NSURLConnection,NSOperation和其他方法为基础的。下面这个例子是用来处理json请求的:NSURL*url=[NSURLURLWithString:@"https://alpha-api.app.net/stream/0...
阅读全文
posted @ 2014-11-20 02:17
lgphp
阅读(2140)
推荐(0)
摘要:
AFNetworking 初探繼ASIHTTPRequest發佈不再維護的訊息之後,如果我們不使用CDN(雲端伺服器),AFNetworking 會是一套不錯的選擇。下載網址:https://github.com/AFNetworking/AFNetworking下載之後,直接匯入Xcode的專案即...
阅读全文
posted @ 2014-11-20 02:07
lgphp
阅读(235)
推荐(0)