cellItemAtIndex
, 내가
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
UICollectionViewCell *cell = [self.collectionView dequeueReusableCellWithReuseIdentifier:@"reusedCell" forIndexPath:indexPath];
// Set shadow around the cell
[cell.layer setMasksToBounds :NO ];
[cell.layer setShadowColor :[[UIColor whiteColor ] CGColor ] ];// shadow's color
[cell.layer setShadowOpacity :0.65 ]; // set the opacty
[cell.layer setShadowRadius :5.0 ]; // set the blur radius
[cell.layer setShadowOffset :CGSizeMake(0 , 0) ]; // set shadow position
[cell.layer setShouldRasterize :YES ]; // tell the cell to render it’s CALayer as a bitmap
[cell.layer setShadowPath :[[UIBezierPath bezierPathWithRect:cell.bounds ] CGPath ] ]; // use a path to draw its shadow instead of using its
......................................................................
}
를 다음을 수행 들어
다음과 같이 설명
응용 프로그램에서 장치의 그림자가 표시됩니다. 그러나 레이블에 대한 텍스트가 흐릿합니다. 나는 그림자하는 데 사용되는 징조 블록 주석을 제거하면 내 장치
에서 촬영 한 군데 다음에서 봐 주시기 바랍니다 텍스트는 다음과 같은 이미지
I로 분명하다 정말 .... 완전히 잃어버린거야. 누구든지이 문제에 대한 아이디어가 있습니까? 도와주세요
이 중 어떤 것에 대한 아이디어가 있습니까 ??? – tranvutuan
나를 구해 주셨습니다. tnxx 많이 – posha