Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide the functionality of adding header image via URL. #4

Open
kidsid49 opened this issue May 5, 2015 · 1 comment
Open

Comments

@kidsid49
Copy link

kidsid49 commented May 5, 2015

App crashes while trying to add header image via URL. When I tried do that by using AFNetworking UIImageView category and its crashes "Array out of index" Exception while using BlurImages array.

@martinblampied
Copy link
Owner

Will test with AFNetworking when I get time, meanwhile the below native code works:

NSURL *url = [NSURL URLWithString:@"http://lmsotfy.com/so.png"];
NSData *data = [NSData dataWithContentsOfURL:url];
UIImage *image = [UIImage imageWithData:data];

MBTwitterScroll *myTableView = [[MBTwitterScroll alloc]
                                initTableViewWithBackgound:image
                                avatarImage:[UIImage imageNamed:@"avatar.png"]
                                titleString:@"Main title"
                                subtitleString:@"Sub title"
                                buttonTitle:@"Follow"]; 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants