LEWatchLayout icon indicating copy to clipboard operation
LEWatchLayout copied to clipboard

How create the datasource array images for random number of elements

Open ghost opened this issue 11 years ago • 2 comments

images = @[@"alarm.png", @"camera.png", @"time.png", @"dots.png", @"email.png", @"map.png", @"message.png", @"movie.png", @"music.png", @"passbook.png", @"phone.png", @"photo.png", @"run.png", @"setting.png", @"spiral.png", @"stopwatch.png", @"translate.png", @"twitter.png", @"weather.png", @"weixin.png",];

how to create this array for random number of items, suppose i want to put stopwatch.png in centre and weixin.png very close to stopwatch.png, just the need the pattern

ghost avatar Aug 07 '15 07:08 ghost

sorry for late. I design this base on row. If you want to put something in centre, really inconvenient. rows arithmetic in function _layoutHexWidthWithCount: I think that modify layout arithmetic is better

libleo avatar Aug 11 '15 01:08 libleo

thanks for your nice reply, yeah i understand you.

ghost avatar Aug 13 '15 19:08 ghost