开发者

what layout components were used for Pocket Weather AU?

Could anyone comment on what IOS components for navigation/layout etc were used for the iPhone application "Pocket Weather AU"? It looks quite good the way it's set out. I'm guessing:

Navigation Controller

  • 1st Level - Contains a table view, with a tool bar at bottom
  • 2nd Level - Detailed view - probably a custom page totally
  • Then regarding the "+" and "grid" button at top in main page - hopefully these are just buttons one can put into the standard Navigation Co开发者_StackOverflowntroller that can then trigger a separate view

Main Screen

what layout components were used for Pocket Weather AU?

Details Screen

what layout components were used for Pocket Weather AU?

PS. Also when the "+" symbol is pressed it goes to:

what layout components were used for Pocket Weather AU?


Just looks like a highly customized Plain Style UITableView in a UINavigationController on the first screen. Each cell has a transparent background image and the entire table view has a background image. It looks like Subtitle style cells. The weather thumbnail (sun, cloud, etc) is a UIImageVIew added as a subview to the cell or possibly the cell accessory. The high/low temperatures are just UILabels added as subviews to the cell.

The buttons on top are just UIBarButtonItems (Add and the Grid). They can be added in viewDidLoad, like so:

self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addAction:)] autorelease];

A UIToolBar is added as a subview containing two UIBarButtonItems (Edit and Refresh). There is also a UILabel subview in the UIToolBar and probably some Flexible Space for layout.

The second screen is a custom view controller. I would lay something like that in a .xib.

addAction would look something like this:

    FindLocationController *findLocationController = [[FindLocationController alloc] initWithStyle:UITableViewStylePlain];
findLocationController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
findLocationController.title = @"Find Location";

UINavigationController *findLocationNavController = [[UINavigationController alloc] initWithRootViewController:findLocationController];
[self.navigationController presentModalViewController:findLocationController animated:YES];

[findLocationController release];
[findLocationNavController release];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜