# weibo **Repository Path**: hpzerozero/weibo ## Basic Information - **Project Name**: weibo - **Description**: 练习项目 - **Primary Language**: Objective-C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-04-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #weibo ##步骤 1、git创建项目 2、git上传项目 3、设置应用图标、启动页面 4、创建类 MeViewController DiscoverViewController MessageViewController HomeViewController 提交版本2 5、添加Reveal.framework 方便调试, * 项目的Build Settings 中搜索 Other Linker Flag,添加 -ObjC * 项目的Build Parses 中 link Binaris With Library 添加libz.tbd库 编译运行如果看到显示: INFO: Reveal Server started (Protocol Version 18). 说明Reveal工具正常工作了 如果出现异常,有可能是与引入第三方库的冲突,第三方库会在 Other Linker Flag 添加-Objc 6、重新布置结构 7、添加AFNetworking Masonry SVProgressHUD库,使用json动态加载视图 8、自定义`HomeViewController`的titleView 8、点击`HomeViewController`的titleView出现一个弹窗,自定义弹窗的转场方式, 9、封装动画到一个类`PopoverAnimation`,由这个类来执行动画,此时弹出视图的动画代理改为此类的实例对象 10、获取OAuth授权 流程 1)、创建一个应用得到应用信息 *App Key:979703286 *App Secret:1a85c40d724db83b6b937f45499f9ed6 2)、设置应用里的授权回调页 *http://www.niit.com.cn 3)获取OAuth授权 *授权网址 https://api.weibo.com/oauth2/authorize?client_id=979703286&redirect_uri=http://www.niit.com.cn client_id App Key redirect_uri 回调网址 4)、用户输入用户名密码登陆授权,如果第一次对某个APP授权,会跳转到授权页面 跳转回调页 欢迎页 // 安装第三方库时只会下载当前没有的库,不会去更新已有的库。速度会快一点 pod install --verbose --no-repo-update