Commit 0260e6fa666b4e650ef003e8f4fb91a7966cbe7f
1 parent
ff42f247
no message
Showing
1 changed file
with
8 additions
and
2 deletions
Example/CNLivePreloadResources/CNLiveViewController.m
| ... | ... | @@ -26,8 +26,14 @@ |
| 26 | 26 | UIImageView *image2 = [[UIImageView alloc]initWithFrame:CGRectMake(100, 200, 30, 30)]; |
| 27 | 27 | image2.backgroundColor = [UIColor greenColor]; |
| 28 | 28 | [self.view addSubview:image2]; |
| 29 | - | |
| 30 | - | |
| 29 | + UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 300, 100, 30)]; | |
| 30 | + titleLabel.backgroundColor = [UIColor blueColor]; | |
| 31 | + titleLabel.textColor = [UIColor blackColor]; | |
| 32 | + titleLabel.font = [UIFont systemFontOfSize:16]; | |
| 33 | + titleLabel.numberOfLines = 1; | |
| 34 | + [self.view addSubview:titleLabel]; | |
| 35 | + titleLabel.text = nil; | |
| 36 | + | |
| 31 | 37 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(6.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ |
| 32 | 38 | NSArray *add1 = [CNLivePreloadManager preloadImagesForRefreshImage]; |
| 33 | 39 | image1.animationImages = add1;//将序列帧数组赋给UIImageView的animationImages属性 | ... | ... |