iOS 3D touch的实现 从零开始

摘要: [key]UIApplicationShortcutItems[/key] [array] [dict] [key]UIApplicationShortcutItemIconType[/key] [string]UIApplicationShortcutIconTypeShare[/string] 阅读全文
posted @ 2016-03-02 14:17 崔付亮 阅读(196) 评论(1) 推荐(1)

iOS 添加,qq登陆,微信登陆,微博登陆,,步骤及其注意事项

摘要: qq,sina,微博登陆 1.申请友盟添加应用获得key 2.在qq sina 微博 添加应用信息..获得appkey.将appkey添加到友盟(分享时候用) 3.在程序中导入lib 引入若干库文件 4.关闭bitcode 5.添加URL types qq两个,微博两个,微信一个 6.添加白名单比较 阅读全文
posted @ 2016-02-25 15:29 崔付亮 阅读(700) 评论(1) 推荐(1)

iOS支付宝支付,,,实现步骤及注意事项

摘要: 注意点: 1.添加URL Types 中添加 2.添加白名单 ,要不就调不到支付宝中 //过程 #warning 1.生成预支付订单信息 要获得partner seller 私钥 这些东西为了保证安全,最好存到服务端. appScheme,, notifyURL 处理 #warning 2.将订单信 阅读全文
posted @ 2016-02-25 15:28 崔付亮 阅读(1337) 评论(1) 推荐(1)

iOS跳转到qq聊天界面

摘要: UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero]; NSURL *url = [NSURL URLWithString:@"mqq://im/chat?chat_type=wpa&uin=315778372&versi 阅读全文
posted @ 2016-02-25 15:27 崔付亮 阅读(543) 评论(0) 推荐(1)

Xcode7.1 面证书 真机调试

摘要: 1.运行Xcode,Xcode打开后,点左上角菜单‘Xcode‘,选择‘Preferences‘。 2.在打开的窗口中,点‘Accounts‘,切换到账号页,然后点下面的‘+‘号,在弹出菜单中点击‘Add Apple ID‘。 3.在弹出的对话框中,填入你的AppleID和密码(不需要$99的账号, 阅读全文
posted @ 2016-02-25 15:27 崔付亮 阅读(159) 评论(0) 推荐(1)

iOS 打电话 发短信功能的实现

摘要: 1.打电话 NSMutableString * str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"186xxxx6979"]; UIWebView * callWebview = [[UIWebView alloc] init]; [ca 阅读全文
posted @ 2016-02-25 15:26 崔付亮 阅读(176) 评论(0) 推荐(1)

iOSpop到指定界面

摘要: int index = (int)[[self.navigationController viewControllers]indexOfObject:self]; [self.navigationController popToViewController:[self.navigationContr 阅读全文
posted @ 2016-02-25 15:20 崔付亮 阅读(318) 评论(0) 推荐(1)

iOS剩余时间的计算 与 显示 返回的数据是截止时间,,我们改成剩余时间

摘要: -(NSString *)getUTCFormateDate:(NSString *)newsDate //newsDate服务器得到的时间 { NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatt 阅读全文
posted @ 2016-02-25 15:13 崔付亮 阅读(493) 评论(0) 推荐(1)

iOS tabbar 背景,右上角数字,tabbar获取方法 总结

摘要: //tabbar选中时的颜色 tabBarController.tabBar.tintColor=[UIColor whiteColor] ; //右上角数字 //可以添加个lable来改变原点的大小, //使用通知/kvo来改变上面的数字 item1.badgeValue=@" “; //... 阅读全文
posted @ 2015-09-26 10:45 崔付亮 阅读(880) 评论(0) 推荐(1)

c语言中输入带空格的字符串,最简单的方法。

摘要: char p[20]; scanf("%[^\n]",p); ok完事 阅读全文
posted @ 2015-08-23 09:45 崔付亮 阅读(2144) 评论(0) 推荐(1)