Tangram-iOS
Tangram-iOS copied to clipboard
Tangram is a modular UI solution for building native page dynamically, including Tangram for Android, Tangram for iOS and even backend CMS. This project provides the sdk on iOS platform.
`pod 'Tangram', '~> 2.1.5'` ``` - (instancetype)init { if (self = [super init]) { _layoutTypeMap = [[NSMutableDictionary alloc]init]; NSString *layoutMapPath = [[NSBundle mainBundle] pathForResource:@"TangramLayoutTypeMap" ofType:@"plist"]; [_layoutTypeMap addEntriesFromDictionary:[TangramDefaultLayoutFactory decodeTypeMap:[NSArray arrayWithContentsOfFile:layoutMapPath]]]; }...
当采用VirtualView布局组件时,上下滚动复用组件复用时出现内部布局错乱。 组件布局父子关系: VHLayout -> Page -> Grid 正常布局: 错乱布局:
## Fix issues: 1. support define width as -1; as it is equal to the width of the screen 2. views with fix-layout, sticky layout or floating layout should stay...
整个页面下拉刷新控件如何添加?
能更新一下吗 现在SD都已经5.X了
- (UIView *)itemInTangramView:(TangramView *)view withModel:(NSObject *)model forLayout:(UIView *)layout atIndex:(NSUInteger)index 这个方法的index返回的和view对应不上,导致取出来的数据源异常引起了崩溃,请问这个怎么解决。
自动布局怎么计算高度
添加setContentOffset的父类调用,避免浮动和吸顶布局的抖动。