可灵活收缩的头部:BLKFlexibleHeightBar

jopen 9年前

BLKFlexibleHeightBar 可以让你创建可灵活收缩的头部。类似于我们在非死book, Square Cash, 和 Safari iOS应用中看到的。

BLKFlexibleHeightBarallows you to create header bars with flexible heights. Often, this sort of UI paradigm is used to hide chrome and make room for more content as a user is scrolling. This is seen in third party apps like 非死book and Square Cash, as well as first party apps like Safari.

BLKFlexibleHeightBarcan create bars that look and act any way you'd like:

  • Immediate subviews of a flexible height bar define how they want to look and where they want to be depending on the height of the bar. Properties like frame, transform, and alpha can all vary depending on the current height of the bar.
  • A bar's behavior can be defined using a behavior definer instance. A behavior definer can be created to emulate Safari's header behavior, 非死book's header behavior, or something entirely new. Behaviors are completely modular and aren't coupled with the appearence of the bar.

Square Cash Style Bar Square Cash Style Bar

项目主页:http://www.open-open.com/lib/view/home/1426150207357