- content
{:toc}
[ Update v1.0.0 ] Similar to Facebook News Feed , Alipay Life , QZone and other social applications . click a drop-down button to display more functions
Introduction
In Facebook News Feed , Alipay Life , QZone and other social applications , they all contain a function drop-down button which would show a list of more functions when taped . I didn’t find any on GitHub , so I wrote a similar UI controls myself using Objective-C. :
GitHub link : LTxMenu
Get Start
- Manually add the files into your Xcode project.
- LTxMenu is available as LTxMenu in Cocoapods.
How To Use
Create a LTxMenuView Object:
|
|
I was too lazy to write a protocol 😄,use callback methods:
|
|
How it works
LTxMenu use LTxMenuItem class to config view showed in row. and LTxMenuView class with callback methods to calculate the UI performance . draw arrow and the border use UIBezierPath class . and the show/hide animation use UIKit.
近期评论