iOS version of the Bilibili API project
- 1.0
- Xcode 9.0
- iOS 11
- Swift 4
Note: not fully tested on iOS 10 or below, but most features should be compatible.
- Open the project in Xcode, or by double-clicking
BilibiliAPI.xcodeproj
. - Run on any iPhone simulator or a real iPhone (again, iOS 11 is recommended).
Introduction to some major scenes.
- Tab container is used
- Navigation container is used
- Load favorite videos / users with
UserDefault
- Swipe to delete
- Tap searching field or video / user in the table to segue to Video / User Search Scene
- Table view delegate is used
- Visit multiple bilibili.com APIs to load information upon tapping the Search button
- Tap the star icon to add current video / user to the favorite list (or remove)
- Tap any table cell with a disclosure indicator to segue to another scene
draw
function is used inUserLevelInfoView
to draw the experience bar- Animation is also used on
UserLevelInfoView
when it is loaded
- Visit the webpage of a given video ID
- Progress bar is used to display the loading progress of the webpage
- Set whether or not to download images
- Clear favorite video / user list
There are more features being added to this app.
- Optimize "database"
- Change the navigation search bar to iOS 11 style
- More settings
- ...