2011年11月8日
摘要:
本文摘自:http://www.devdiv.com/thread-103242-1-1.html
阅读全文
posted @ 2011-11-08 00:20
wtq
阅读(473)
推荐(0)
摘要:
摘自:http://blog.csdn.net/sjzsp/article/details/6319927Iphone中已经自定义好了视频播放类MPMoviePlayerController,我们只需调用既可,下面详细介绍一下调用手机播放器的例子:首先创建一个视图工程PlayMoveViewDemo,然后声明其类型:#import<UIKit/UIKit.h>@interfacePlayMoveViewDemoViewController : UIViewController {IBOutletUIButton*button;}@property(nonatomic,retain)
阅读全文
posted @ 2011-11-08 00:16
wtq
阅读(325)
推荐(0)
摘要:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { MenuViewController *menuController = [[MenuViewController alloc] initWithNibName:@"MenuView" bundle:nil]; self.menuViewController = menuController; [menuController release]; menuV
阅读全文
posted @ 2011-11-08 00:15
wtq
阅读(1045)
推荐(0)
2011年11月7日
摘要:
本文摘自:http://www.cocoachina.com/bbs/read.php?tid-59955.html在Pop的时候,会把你的ViewController的retainCount加1,Dismiss的时候,会减少相应的值UIViewController *controller = [[UIViewController alloc]initWithNib ......];[self popViewController:controller Animated:YES];[controller release];
阅读全文
posted @ 2011-11-07 23:20
wtq
阅读(1585)
推荐(0)
摘要:
摘自:http://www.cocoachina.com/bbs/read.php?tid-33152.htmla(tableview)pushviewcontrol到b,执行完c动作后[[self navigationController] popViewControllerAnimated:YES];返回a,但表格数据未刷新,调试发现未执行- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath请问有什么办法在popViewController
阅读全文
posted @ 2011-11-07 23:09
wtq
阅读(1451)
推荐(0)
摘要:
1,在viewDidLoad时,初始化label,代码如下:UILabel *labelcopy = [[UILabel alloc] initWithFrame:CGRectZero]; labelcopy.textColor = [UIColor redColor]; labelcopy.text = @"123455"; labelcopy.frame = CGRectMake(0,0, 100, 100); label = labelcopy; [self.view addSubview:label]; [labelcopy release]; 以上代码运行正常。但
阅读全文
posted @ 2011-11-07 16:43
wtq
阅读(399)
推荐(0)
2011年11月6日
摘要:
本文摘自:http://www.cocoachina.com/bbs/read.php?tid=73570&page=1制作播放器:代码如下:2、播放音乐:-(void) playMusic{@try{//取文件路径NSString*musicFilePath = [[NSBundlemainBundle]pathForResource:@"startLogo"ofType:@"mp3"]; NSURL*musicURL = [[NSURLalloc]initFileURLWithPath:musicFilePath]; musicPlayer=
阅读全文
posted @ 2011-11-06 17:00
wtq
阅读(277)
推荐(0)
摘要:
1此代码的的意图是研究导航控制器,根控制器提供显示子控制器的内容。代码下载:navigation
阅读全文
posted @ 2011-11-06 10:43
wtq
阅读(238)
推荐(0)
摘要:
原文摘自:http://www.cocoachina.com/iphonedev/sdk/2011/1028/3433.html1)iphone程序中实现截屏的一种方法 在iphone程序中实现截屏的一种方法: //导入头文件 #import QuartzCore/QuartzCore.h //将整个self.view大小的图层形式创建一张图片image UIGraphicsBeginImageContext(s1)iphone程序中实现截屏的一种方法在iphone程序中实现截屏的一种方法://导入头文件#import QuartzCore/QuartzCore.h//将整个self.view
阅读全文
posted @ 2011-11-06 09:51
wtq
阅读(384)
推荐(0)
2011年11月5日
摘要:
本文摘自:http://www.cocoachina.com/bbs/read.php?tid-60903-keyword-uilabel.html发个完整的超链接的UILabel教程, 高手绕道~为了实例化咱们的Label时必须做点啥.. 先来个协议..h文件复制代码#import <Foundation/Foundation.h>@class MyLabel;@protocol MyLabelDelegate <NSObject>@required- (void)myLabel:(MyLabel *)myLabel touchesWtihTag:(NSInteger
阅读全文
posted @ 2011-11-05 09:50
wtq
阅读(3277)
推荐(0)