#import <UIKit/UIKit.h> typedef void (^BLOCK)(UIColor *); @interface SecondViewController : UIViewController @property(nonatomic,copy)BLOCK backColorB
分类:
其他好文 时间:
2016-01-27 21:23:53
阅读次数:
115
代码:ViewController.h#import //短信分享#import #import @interface ViewController : UIViewController@endViewController.m#import "ViewController.h"@interface ...
分类:
其他好文 时间:
2016-01-27 10:31:29
阅读次数:
145
//获取当前屏幕显示的viewcontroller - (UIViewController *)getCurrentVC { UIViewController *result = nil; UIWindow * window = [[UIApplication sharedApplication] ...
分类:
其他好文 时间:
2016-01-25 19:16:55
阅读次数:
156
一、最普通的视图控制器UIViewContoller 一个普通的视图控制器一般只有模态跳转的功能(ipad我不了解除外,这里只说iPhone),这个方法是所有视图控制器对象都可以用的,而实现这种功能,有两种方法。 1、通过方法- (void)presentViewController:(UIVi.....
分类:
移动开发 时间:
2016-01-25 14:41:26
阅读次数:
169
1.首先导入 MediaPlayerimport MediaPlayer2.播放事件class ViewController:UIViewController{var pc:MPMoviePlayerViewController!@IBAction func playVideoBtnClicked(...
分类:
移动开发 时间:
2016-01-23 12:47:59
阅读次数:
172
一,效果图。二,工程图。三,代码。RootViewController.h#import @interface RootViewController : UIViewController{ UIScrollView *scoreView;}@endRootViewController.m#im...
分类:
其他好文 时间:
2016-01-22 14:13:00
阅读次数:
195
FirstViewController的代码import UIKitclass FirstViewController: UIViewController, SecondViewControllerDelegate { @IBOutlet weak var showTextLabel: UIL...
分类:
编程语言 时间:
2016-01-22 02:54:02
阅读次数:
182
@property (nonatomic, strong) UIViewController *currentShowVC; //设置代理 self.navigationController.interactivePopGestureRecognizer.delegate =(id)se...
分类:
移动开发 时间:
2016-01-21 00:36:47
阅读次数:
228
1 - (void)removeVC:(UIViewController *)urViewControllerClass 2 { 3 NSArray* tempVCA = [self.navigationController viewControllers]; 4 for(UIVi...
分类:
移动开发 时间:
2016-01-20 17:05:52
阅读次数:
311
一,效果图。二,工程图。三,代码。RootViewController.h#import @interface RootViewController : UIViewController{ UITableView *myTableView;}@endRootViewController.m#i...
分类:
其他好文 时间:
2016-01-20 09:59:41
阅读次数:
177