Code Monkey home page Code Monkey logo

doubanfm's Introduction

Yet Another Douban FM Client for iOS

How to Install

  1. Install cocoapods

    gem install cocoapods

  2. Install pods

    pod install

  3. Open .xcworkspace

    open DoubanFM.xcworkspace

doubanfm's People

Contributors

wangwangwar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

doubanfm's Issues

快速点击频道列表Cell会闪退

异常信息:

    Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Signal <RACDynamicSignal: 0x175c2130> name:  is already bound to key path "songs" on object <SongStore: 0x1758e510>, adding signal <RACDynamicSignal: 0x176d1d40> name:  is undefined behavior'

播放了几首歌曲后无法下一曲

这是由于每次请求API,只会返回几首歌曲。
改进措施:需要在最后一首歌曲播放完毕后再次请求API,把数据append,(或者播放开始时提前获取)。

启动自动播放音乐或者切换列表有音乐但是时间显示和进度条都不动

- [MainViewController viewDidLoad]中,我们有这样的绑定:

    @weakify(self)
    [RACObserve([SongStore sharedStore], songs) subscribeNext:^(NSArray *songs) {
        @strongify(self)
        [self changeSong:songs[self.currentSongIndex]];
    }];

- [MainViewController changeSong:]中有更新Time Label和Progress Bar的操作,这些属于UI的操作必须在主线程中执行。RAC默认是在自定义线程中执行代码,为了让UI更新,我们需要指定主线程,RAC提供了相应的API:- [RACSignal deliverOn:]

改进UI

  1. 分3个view,一个播放主界面,一个播放列表界面,一个频道界面

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.