Thursday, January 13, 2011

13 January 2011

Got the directory for saving the models and text files right :) we are supposed to save all the downloaded files into the NSDocumentDirectory. Once that was done, we were able to download and read the text files easily too.

While Zac worked on displaying the node descriptions, I worked on the UI for displaying the online models list. Managed to get the UI done properly for the iPhone as well as the iPad. While doing that, I found a better way to make use of tools bars programmatically. Instead of created our own UIToolBar, do this:

UIBarButtonItem *onlineModelsButton = [[UIBarButtonItem alloc] initWithTitle:@"Online Models" style:UIBarButtonItemStyleBordered target:self action:@selector(viewOnlineModels)];
[self setToolbarItems:[NSArray arrayWithObject:onlineModelsButton]];
[self.navigationController setToolbarHidden:NO animated:NO];

Was having some issues with displaying a modal view inside a UIPopover. Got to read some sources online and it was said that apple doesn't recommend that. Instead, I decided to have a popover display another popover view. It worked out pretty nicely.

We got the login page done up nicely too! :D

No comments:

Post a Comment