Open ShuangZiMoYin opened 6 years ago
PYPhotosView只添加一次,然后在- (UITableViewCell )tableView:(UITableView )tableView cellForRowAtIndexPath进行赋值操作cell.photosView.placeholderImage = [UIImage imageNamed:@"c_d_photo"]; cell.photosView.originalUrls = urls; cell.photosView.layoutType = PYPhotosViewLayoutTypeLine; // 设置Frame cell.photosView.py_y = lxw_cMargin; cell.photosView.py_x = lxw_cMargin; cell.photosView.py_width = lxwWidth-2*lxw_cMargin; cell.photosView.photoMargin = lxwSize(10); cell.photosView.photoWidth = lxwSize(155); cell.photosView.photoHeight = lxwSize(112);
PYPhotosView只添加一次,然后在- (UITableViewCell )tableView:(UITableView )tableView cellForRowAtIndexPath进行赋值操作cell.photosView.placeholderImage = [UIImage imageNamed:@"c_d_photo"]; cell.photosView.originalUrls = urls; cell.photosView.layoutType = PYPhotosViewLayoutTypeLine; // 设置Frame cell.photosView.py_y = lxw_cMargin; cell.photosView.py_x = lxw_cMargin; cell.photosView.py_width = lxwWidth-2*lxw_cMargin; cell.photosView.photoMargin = lxwSize(10); cell.photosView.photoWidth = lxwSize(155); cell.photosView.photoHeight = lxwSize(112);