equal
deleted
inserted
replaced
126 #pragma mark - |
126 #pragma mark - |
127 -(IBAction) switchViews:(id) sender { |
127 -(IBAction) switchViews:(id) sender { |
128 UIButton *button = (UIButton *)sender; |
128 UIButton *button = (UIButton *)sender; |
129 UIAlertView *alert; |
129 UIAlertView *alert; |
130 NSString *configNibName; |
130 NSString *configNibName; |
|
131 NSString *debugStr; |
131 |
132 |
132 switch (button.tag) { |
133 switch (button.tag) { |
133 case 0: |
134 case 0: |
134 if (1) { // bug in UIModalTransitionStylePartialCurl? |
135 if (1) { // bug in UIModalTransitionStylePartialCurl? |
135 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) |
136 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) |
153 splitRootViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; |
154 splitRootViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; |
154 } |
155 } |
155 |
156 |
156 [self presentModalViewController:splitRootViewController animated:YES]; |
157 [self presentModalViewController:splitRootViewController animated:YES]; |
157 break; |
158 break; |
|
159 case 3: |
|
160 debugStr = [[NSString alloc] initWithContentsOfFile:DEBUG_FILE()]; |
|
161 UITextView *scroll = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.height, self.view.frame.size.width)]; |
|
162 scroll.text = debugStr; |
|
163 [debugStr release]; |
|
164 scroll.editable = NO; |
|
165 |
|
166 UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; |
|
167 [btn addTarget:scroll action:@selector(removeFromSuperview) forControlEvents:UIControlEventTouchUpInside]; |
|
168 btn.backgroundColor = [UIColor blackColor]; |
|
169 btn.frame = CGRectMake(self.view.frame.size.height-70, 0, 70, 70); |
|
170 [scroll addSubview:btn]; |
|
171 [self.view addSubview:scroll]; |
|
172 [scroll release]; |
|
173 break; |
158 default: |
174 default: |
159 alert = [[UIAlertView alloc] initWithTitle:@"Not Yet Implemented" |
175 alert = [[UIAlertView alloc] initWithTitle:@"Not Yet Implemented" |
160 message:@"Sorry, this feature is not yet implemented" |
176 message:@"Sorry, this feature is not yet implemented" |
161 delegate:nil |
177 delegate:nil |
162 cancelButtonTitle:@"Well, don't worry" |
178 cancelButtonTitle:@"Well, don't worry" |