Giter VIP home page Giter VIP logo

sinaweibo-watchkit's Introduction

SinaWeibo-WatchKit

WatchKit 新浪微博Demo

环境:Xcode 6.2 , IOS 8.2
使用三方框架:AFNetworking , FMDB , JsonModel
##效果:
###demo简介: 实现功能:watch模拟器与iphone模拟器通讯,
让iphone向新浪微博请求微博数据并保存至本地数据库,
再让watch通过app Group 获取数据并显示。
###运行步骤: ####1.申请新浪微博开放平台接口使用
由于使用了新浪微博接口,
所以需要在新浪微博开放平台申请应用
####2.当申请了应用之后,需要在申请的应用的应用信息页面,
找到新浪提供的APP key,App secret,
以及自己填写的应用地址(此地址可以随便写,并不影响)

填写到项目中OAuth授权下的LYROAuthViewController.m文件的三个宏

####3.修改应用对应的开发者账号
由于watchkit应用与iphone应用数据共享,
需要打开APP Group 功能,
需要修改项目以下两个target对应的开发者账号


####4.修改应用bundle id
由于开发者账号变化,需要修改应用的bundle id,



需要注意的是,由于watchkit的target较多,
需要仔细检查WatchKit App,WatchKit Extension的bundle id,

不然模拟器运行时会报:SPErrorInvalidBundleNoGizmoBinaryMessage错误
5.修改target的App Group 标识
修改两个target的App Group标识


6.修改LYRWeiboKit文件夹中LYRAppGroup.h文件的App Group标识宏
###结束 完成以上步骤后,应该就可以运行了。。。
本人第一次在gitHub上保存代码,
也不是什么特别高端有用的,给其他初学者一点启发吧。。。
希望大家共同进步~~~
我的邮箱:[email protected]

sinaweibo-watchkit's People

Contributors

kof97500 avatar

Watchers

JentCastttttt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.