布局工具-MosaicUI - 有空看一看

来源:互联网 发布:seo sem培训 编辑:程序博客网 时间:2024/05/20 06:09

https://github.com/betzerra/MosaicUI



Mosaic UI

MosaicUI is a tiled UI for iOS that automatic layouts according to the elements' sizes.

Landscape

Portrait

DataSource Delegate

To work properly, MosaicView needs a class that implements MosaicViewDatasourceProtocol

-(NSArray *)mosaicElements; // Array containing MosaicData objects

MosaicViewDelegate

Ok, so now you've got the MosaicView working but you'll probably want something to happen when someone taps an element. In that case you'll need a class that implements MosaicViewDelegateProtocol

-(void)mosaicViewDidTap:(MosaicDataView *)aModule;-(void)mosaicViewDidDoubleTap:(MosaicDataView *)aModule;

Look and feel

You can customize how it looks by overriding the MosaicDataView class.


原创粉丝点击