摘要: ios广告只需要添加iAd.framework框架添加广告控件ADBannerView,在控制器中设置广告控件代理即可,广告会有苹果官方自动推送使用注意:动画控件显示前要有宽高可以添加控件显示动画(为了更好的用户体验)- (void)bannerViewDidLoadAd:(ADBannerView... 阅读全文
posted @ 2015-07-17 22:59 汤冉阳 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1.添加框架,storeKit.framework 需要真机调试/*内购五步: 1.请求可销售商品的列表 2.展示课销售的商品 3.点击购买 4.开具小票 5.创建交易对象并添加到交易队列 6.创建监听对象,监听交易队列中交易对象的交易状态 7.程序结束移除监听... 阅读全文
posted @ 2015-07-17 22:51 汤冉阳 阅读(206) 评论(0) 推荐(0) 编辑
摘要: // 实现原理及思路:不同种类的皮肤放在不同的文件夹下,用一个plist文件存放不同控制器下的控件的背景颜色//plist文件名称为控制器的名称,内部的数据字典的key value对自定义一个命名规则,容易读取即可//#import "MYScreenToll.h"@interface MYScre... 阅读全文
posted @ 2015-07-17 22:47 汤冉阳 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1.进入https://www.jpush.cn/common/products,注册用户,下载ADK,查看使用说明2.简单的在AppDelegate中添加如下代码#import "AppDelegate.h"#import "APService.h"@interface AppDelegate (... 阅读全文
posted @ 2015-07-17 22:43 汤冉阳 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 推送需要真机调试#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate//注册完毕 远程推送通知之后就会调用-(void)application:(UIApplication *)applicat... 阅读全文
posted @ 2015-07-17 22:36 汤冉阳 阅读(207) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate//无论程序在前后台运行,只要接收到通知,就会调用此方法-(void)application:(UIApplication *)applica... 阅读全文
posted @ 2015-07-17 22:27 汤冉阳 阅读(207) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import "RYColorSelectController.h"#import "RYMenuViewController.h"#import "RYTitleViewController.h"@interface ViewControlle... 阅读全文
posted @ 2015-07-17 22:16 汤冉阳 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)CLLocationManager*manager;@property (weak, nonatomic) IBOutle... 阅读全文
posted @ 2015-07-17 22:04 汤冉阳 阅读(220) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import #import "MYAnnotation.h"@interface ViewController ()@property(nonatomic,strong)CLLocationManager *mag;@property(nona... 阅读全文
posted @ 2015-07-17 22:00 汤冉阳 阅读(366) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)CLLocationManager*manager;;@property(nonatomic,strong)CLLocat... 阅读全文
posted @ 2015-07-17 21:59 汤冉阳 阅读(314) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController ()@property(nonatomic,weak)UITextField*destination;@end@implementation ViewController- (vo... 阅读全文
posted @ 2015-07-17 21:58 汤冉阳 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 只要用于获取用户位置都要取得用户授权#import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)UITextField*destination;@property(nonatomic... 阅读全文
posted @ 2015-07-17 21:56 汤冉阳 阅读(351) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)CLLocationManager *manager;@end@implementation ViewController... 阅读全文
posted @ 2015-07-17 21:54 汤冉阳 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1.添加MapKit.framework框架 ,在plist中添加字段,用于,获取用户当前位置设置 NSLocationAlwaysUsageDescription2.代码#import "ViewController.h"#import @interface ViewController ()@p... 阅读全文
posted @ 2015-07-17 21:51 汤冉阳 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; //地理编码 [... 阅读全文
posted @ 2015-07-17 20:30 汤冉阳 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1. ios7只要开始定位,系统就会自动要求你对应用程序授权 ios8之后,必须要代码中实现要求用户对应用程序授权 ,在plist中添加以下两个属性 NSLocationWhenInUseDescription,允许在前台获取GPS的描述 NSLocationAlwaysUsageDesc... 阅读全文
posted @ 2015-07-17 20:27 汤冉阳 阅读(256) 评论(0) 推荐(0) 编辑