diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-21 19:19:57 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-21 19:19:57 -0400 |
commit | 64e9e2e8d01ec34e5d7a2c1cb11d3780408403c4 (patch) | |
tree | cd4e2a3ba3ca2cf6543315ebb0ccb1ab6ae5b0ea /Classes/SourcesEditViewController.m | |
parent | e5a5bc8a1edc90cf0b200956f6a3f7712766d1d6 (diff) | |
download | piccast-app-64e9e2e8d01ec34e5d7a2c1cb11d3780408403c4.tar.gz piccast-app-64e9e2e8d01ec34e5d7a2c1cb11d3780408403c4.zip |
add titlebar image, loading image, loading fade, sources edit page has onoff switch but needs it to work better, drawRect override for navigationbar
Diffstat (limited to 'Classes/SourcesEditViewController.m')
-rw-r--r-- | Classes/SourcesEditViewController.m | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/Classes/SourcesEditViewController.m b/Classes/SourcesEditViewController.m index 7c04808..d0ca382 100644 --- a/Classes/SourcesEditViewController.m +++ b/Classes/SourcesEditViewController.m @@ -7,6 +7,7 @@ // #import "SourcesEditViewController.h" +#import "SourcesEditViewCell.h" @implementation SourcesEditViewController @@ -19,6 +20,8 @@ - (void)viewDidLoad { [super viewDidLoad]; + + self.tableView.rowHeight = 100; // Uncomment the following line to display an Edit button in the navigation bar for this view controller. // self.navigationItem.rightBarButtonItem = self.editButtonItem; @@ -84,11 +87,26 @@ // Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - static NSString *CellIdentifier = @"Cell"; + static NSString *CellIdentifier = @"SourcesEditCell"; - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; + SourcesEditViewCell *cell = (SourcesEditViewCell *)[self.tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { - cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; + NSArray *tmpCell = [[NSBundle mainBundle] loadNibNamed:@"TopicTableViewCell" owner:self options:nil]; + + for (id currentObj in tmpCell) { + if ([currentObj isKindOfClass:[TopicTableViewCell class]]) { + cell = (SourcesEditViewCell *)currentObj; + [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; + + UISwitch *mySwitch = [[[UISwitch alloc] initWithFrame:CGRectZero] autorelease]; + [cell addSubview:mySwitch]; + cell.accessoryView = mySwitch; + + //cell.accessoryView = cell.switcher; + break; + } + } + //cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; } // Configure the cell... |