Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return [super newWithComponent:
- [CKInsetComponent
- newWithInsets:{}
- component:
- [CKStackLayoutComponent
- newWithView:{}
- size:{
- }
- style:{
- .direction = CKStackLayoutDirectionVertical,
- }
- children:{
- {[CKInsetComponent
- newWithInsets:{.top = 20, .left = 20}
- component:
- [CKStackLayoutComponent
- newWithView:{}
- size:{}
- style:{
- .direction = CKStackLayoutDirectionHorizontal,
- }
- children:{
- {[CKComponent
- newWithView:{
- [UIImageView class],
- {
- {@selector(setImage:), [UIImage imageNamed:@"LosAngeles"]},
- {@selector(setContentMode:), @(UIViewContentModeScaleAspectFill)},
- {@selector(setClipsToBounds:), @YES},
- }
- }
- size:{ .width = 50, .height = 50}]},
- {[CKInsetComponent
- newWithInsets:{.left = 10, .top = 8}
- component:
- [CKStackLayoutComponent
- newWithView:{}
- size:{}
- style:{
- }
- children:{
- {
- [CKInsetComponent
- newWithInsets:{.bottom = 4,}
- component:[CKLabelComponent
- newWithLabelAttributes:{
- .string = @"Khant Thu Linn Khant Thu Linn Khant Thu Linn Khant Thu Linn Khant Thu Linn Khant Thu Linn",
- .font = [UIFont fontWithName:@"Baskerville" size:14],
- .maximumNumberOfLines = 0,
- .lineBreakMode = NSLineBreakByWordWrapping
- }
- viewAttributes:{
- {@selector(setBackgroundColor:), [UIColor clearColor]},
- {@selector(setUserInteractionEnabled:), @NO},
- }
- size:{ }]]
- },
- {[CKLabelComponent
- newWithLabelAttributes:{
- .string = @"Posted on Monday",
- .font = [UIFont fontWithName:@"Baskerville" size:14]
- }
- viewAttributes:{
- {@selector(setBackgroundColor:), [UIColor clearColor]},
- {@selector(setUserInteractionEnabled:), @NO},
- }
- size:{ }]
- }
- }]]}
- }]]},
- {[CKInsetComponent
- newWithInsets:{.left = 20, .top = 8}
- component:
- [CKStackLayoutComponent
- newWithView:{}
- size:{}
- style:{
- }
- children:{
- {[CKLabelComponent
- newWithLabelAttributes:{
- .string = @"This shall be context",
- .font = [UIFont fontWithName:@"Baskerville" size:14]
- }
- viewAttributes:{
- {@selector(setBackgroundColor:), [UIColor clearColor]},
- {@selector(setUserInteractionEnabled:), @NO},
- }
- size:{ }]
- }
- }]]}
- }]]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement