Giter VIP home page Giter VIP logo

tellmeexrate's Introduction

汇率速查 APP 文档

开发环境

  • Swift on Xcode Version 6.1.1 (6A2008a)
  • iPhone App
  • iOS SDK 8.1

界面逻辑

汇率计算屏

  • 上方 Text Field 输入左边显示的基准货币的金额(为空时,placeholder 为 100.00,同时下方对应 100 基准货币的换算金额)
  • 下方 6 个 Table View Cell 分别显示六种货币的换算金额
  • 每两小时,即当前时间与上次获取汇率的时间相差 2 小时以上,则自动获取最新汇率
  • 输入基准货币的金额时,下方的等值货币是实时变化的
  • 弹出数字键盘时,点击数字键盘以外的地方即可撤销键盘

设置屏

  • 设置基准货币——返回汇率计算屏时,基准货币改变
  • 查看作者信息、软件信息
  • 查看当前汇率的更新时间
  • 点击立刻获取最新汇率——上方汇率更新时间立刻更新,汇率计算屏的计算用汇率也已经变化

作者信息屏

  • 邮件与网址均可点击并跳转

软件信息屏

  • 可以查看软件说明,UITextView

退出程序后…

  • 退出程序后,当前的基准货币、当时汇率利用 Coredata 持久化

技术要点

稍难:用了较长时间解决,查了资料、走了弯路

  • 获取远端 json 并 parse,设置为程序中的属性(有异步回调)
  • 储存、调用 Coredata 数据。程序内存清空后,还可以调用已保存的汇率与基准货币设定
  • 子类化 Table View,代理 touch 事件,才实现点击 Table View 时隐藏数字键盘

中等:用了一段时间解决,查了资料,没怎么走弯路

  • TabView 间数据传递

简单:没用什么时间解决,查了资料或者自己摸索都有

  • 界面元素颜色修改
  • 界面元素布局排版、增加国旗与头像图片
  • 增加限制以同时适应 iPhone4/5/6/6P 的屏幕大小
  • Tab Bar Item 定制
  • 启动屏上方的 Status Bar 为白色

TODO

  • 货币信息数组化、Table View 变为动态生成——便于增加新的货币

联系

tellmeexrate's People

Contributors

kitayoshi avatar

Watchers

 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.