Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)createRewardScrollView
- {
- double height = 50.0;
- double width = 155.5;
- double space = 4.0;
- if (self.m_arr_reward && [self.m_arr_reward count] > 0)
- {
- self.rewardScrollView.contentSize = CGSizeMake([self.m_arr_reward count] * (width + space), height);
- self.rewardScrollView.backgroundColor = [UIColor clearColor];
- for (int i = 0; i < [self.m_arr_reward count]; i++)
- {
- NSDictionary * data = [self.m_arr_reward objectAtIndex:i];
- NSString *urlStrRight = [data objectForKey:@"image_thumbnail"];
- NSURL *urlImageRight = [NSURL URLWithString:urlStrRight];
- self.imageReward = [[[AsyncImageView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)] autorelease];
- if (urlImageRight)
- {
- self.imageReward.imageURL = urlImageRight;
- }
- else
- {
- self.imageReward.image = nil;
- }
- self.point.text = [data objectForKey:@"point"];
- [self.rewardScrollView addSubview:self.rewardView];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement