]>
Commit | Line | Data |
---|---|---|
70750ab3 | 1 | /* Cydia - iPhone UIKit Front-End for Debian APT |
323746d3 | 2 | * Copyright (C) 2008-2013 Jay Freeman (saurik) |
70750ab3 JF |
3 | */ |
4 | ||
6d9696a5 | 5 | /* GNU General Public License, Version 3 {{{ */ |
70750ab3 | 6 | /* |
6d9696a5 JF |
7 | * Cydia is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published | |
9 | * by the Free Software Foundation, either version 3 of the License, | |
10 | * or (at your option) any later version. | |
70750ab3 | 11 | * |
6d9696a5 JF |
12 | * Cydia is distributed in the hope that it will be useful, but |
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | * GNU General Public License for more details. | |
70750ab3 | 16 | * |
6d9696a5 JF |
17 | * You should have received a copy of the GNU General Public License |
18 | * along with Cydia. If not, see <http://www.gnu.org/licenses/>. | |
19 | **/ | |
70750ab3 JF |
20 | /* }}} */ |
21 | ||
22 | #include "Cydia/LoadingViewController.h" | |
23 | ||
24 | @implementation CydiaLoadingViewController | |
25 | ||
26 | - (void) loadView { | |
39470a3a JF |
27 | UIView *view([[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]); |
28 | [view setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; | |
29 | [self setView:view]; | |
70750ab3 JF |
30 | |
31 | UITableView *table([[[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStyleGrouped] autorelease]); | |
32 | [table setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; | |
33 | [[self view] addSubview:table]; | |
34 | ||
35 | indicator_ = [[[CydiaLoadingView alloc] initWithFrame:[[self view] bounds]] autorelease]; | |
36 | [indicator_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; | |
37 | [[self view] addSubview:indicator_]; | |
38 | ||
39 | tabbar_ = [[[UITabBar alloc] initWithFrame:CGRectMake(0, 0, 0, 49.0f)] autorelease]; | |
40 | [tabbar_ setFrame:CGRectMake(0.0f, [[self view] bounds].size.height - [tabbar_ bounds].size.height, [[self view] bounds].size.width, [tabbar_ bounds].size.height)]; | |
41 | [tabbar_ setAutoresizingMask:(UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleWidth)]; | |
42 | [[self view] addSubview:tabbar_]; | |
43 | ||
44 | navbar_ = [[[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, 0, 44.0f)] autorelease]; | |
45 | [navbar_ setFrame:CGRectMake(0.0f, 0.0f, [[self view] bounds].size.width, [navbar_ bounds].size.height)]; | |
46 | [navbar_ setAutoresizingMask:(UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleWidth)]; | |
47 | [[self view] addSubview:navbar_]; | |
48 | } | |
49 | ||
50 | - (void) releaseSubviews { | |
51 | indicator_ = nil; | |
52 | tabbar_ = nil; | |
53 | navbar_ = nil; | |
54 | } | |
55 | ||
56 | @end |