Skip to content
Snippets Groups Projects
Commit ea00ccc3 authored by cramakri's avatar cramakri
Browse files

Added support for showing images

SVN: 27084
parent 61edc2ec
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
@property (strong, nonatomic) CISDOBIpadEntity *detailItem; @property (strong, nonatomic) CISDOBIpadEntity *detailItem;
@property (weak, nonatomic) IBOutlet UITableView *propertiesTableView; @property (weak, nonatomic) IBOutlet UITableView *propertiesTableView;
@property (weak, nonatomic) IBOutlet UILabel *summaryHeaderLabel; @property (weak, nonatomic) IBOutlet UILabel *summaryHeaderLabel;
@property (weak, nonatomic) IBOutlet UILabel *summaryLabel; @property (weak, nonatomic) IBOutlet UILabel *summaryLabel;
@property (weak, nonatomic) IBOutlet UILabel *identifierLabel; @property (weak, nonatomic) IBOutlet UILabel *identifierLabel;
......
...@@ -56,6 +56,12 @@ ...@@ -56,6 +56,12 @@
self.summaryHeaderLabel.text = [[self.detailItem valueForKey:@"summaryHeader"] description]; self.summaryHeaderLabel.text = [[self.detailItem valueForKey:@"summaryHeader"] description];
self.summaryLabel.text = [[self.detailItem valueForKey:@"summary"] description]; self.summaryLabel.text = [[self.detailItem valueForKey:@"summary"] description];
self.identifierLabel.text = [[self.detailItem valueForKey:@"identifier"] description]; self.identifierLabel.text = [[self.detailItem valueForKey:@"identifier"] description];
if (self.detailItem.imageUrl) {
NSURL *imageUrl = [NSURL URLWithString: self.detailItem.imageUrl];
NSData *imageData = [NSData dataWithContentsOfURL: imageUrl];
self.imageView.image =[UIImage imageWithData: imageData];
}
[self.propertiesTableView reloadData]; [self.propertiesTableView reloadData];
} }
......
Setup Setup
===== =====
This project is currently being used to test out development ideas. It is not connected to a live instance of openBIS. Data needs to be retrieved form openBIS using the openBISData target and stored in a file that is located in the DevData/openBISData.sqlite. This project is currently being used to test out development ideas. It is not connected to a live instance of openBIS. Data needs to be retrieved form openBIS using the openBISData target and stored in a file that is located in the DevData/openBISData.sqlite.
\ No newline at end of file
To run this preparation step, run the openBISdata target and move the resulting file from Research/openBISData.sqlite to DevData/openBISData.sqlite
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment