当前位置: 编程技术>移动开发
本页文章导读:
▪OpenGL ES 处置碰撞探测及旋转运动 OpenGL ES 处理碰撞探测及旋转运动
终于把这部分的工作完成了。
1 楼
hurry07
2010-09-14
楼主能简单介绍一下吗 ......
▪ 【转帖】与此同时启动两个模拟器的方法 【转帖】同时启动两个模拟器的方法
步骤一:进入Eclipse,compile运行程序,顺利开始第一个模拟器实例;步骤二:打开DOS窗口,并输入命令,进入文件夹:D:\>cd D:\SDK\android\tools\步骤三:.........
▪ MBProgressHUD应用备忘录 MBProgressHUD使用备忘录
MBProgressHUD是替代UIProgressHUD的一个小工具,使用方法也非常简单。下载地址是: http://github.com/matej/MBProgressHUD
#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
@interface HudDem.........
[1]OpenGL ES 处置碰撞探测及旋转运动
来源: 互联网 发布时间: 2014-02-18
OpenGL ES 处理碰撞探测及旋转运动
终于把这部分的工作完成了。
1 楼
hurry07
2010-09-14
楼主能简单介绍一下吗
[2] 【转帖】与此同时启动两个模拟器的方法
来源: 互联网 发布时间: 2014-02-18
【转帖】同时启动两个模拟器的方法
步骤一:进入Eclipse,compile运行程序,顺利开始第一个模拟器实例;
步骤二:打开DOS窗口,并输入命令,进入文件夹:
步骤一:进入Eclipse,compile运行程序,顺利开始第一个模拟器实例;
步骤二:打开DOS窗口,并输入命令,进入文件夹:
D:\>cd D:\SDK\android\tools\步骤三:输入shell command
D:\SDK\android\tools>emulator -data foo此时,窗口会跳出另一个模拟器,模拟器窗口左上方会有InstanceID
[3] MBProgressHUD应用备忘录
来源: 互联网 发布时间: 2014-02-18
MBProgressHUD使用备忘录
MBProgressHUD是替代UIProgressHUD的一个小工具,使用方法也非常简单。
下载地址是: http://github.com/matej/MBProgressHUD
MBProgressHUD是替代UIProgressHUD的一个小工具,使用方法也非常简单。
下载地址是: http://github.com/matej/MBProgressHUD
#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
@interface HudDemoViewController : UIViewController <MBProgressHUDDelegate> {
MBProgressHUD *HUD;
}
- (IBAction) showWithLabel:(id)sender;
- (void) myTask;
@end
@implementation HudDemoViewController
- (IBAction) showWithLabel:(id)sender {
// Should be initialized with the windows frame so the HUD disables all user input by covering the entire screen
HUD = [[MBProgressHUD alloc] initWithWindow:[UIApplication sharedApplication].keyWindow];
// Add HUD to screen
[self.view.window addSubview:HUD];
// Regisete for HUD callbacks so we can remove it from the window at the right time
HUD.delegate = self;
HUD.labelText = @"Loading";
// Show the HUD while the provided method executes in a new thread
[HUD showWhileExecuting:@selector(myTask) onTarget:self withObject:nil animated:YES];
}
- (void) myTask {
// Do something usefull in here instead of sleeping ...
sleep(3);
}
- (void)hudWasHidden {
// Remove HUD from screen when the HUD was hidded
[HUD removeFromSuperview];
[HUD release];
}
@end
最新技术文章: