- 浏览: 39775 次
- 性别:
- 来自: 广州
最新评论
文章列表
[[UIApplication sharedApplication] setIdleTimerDisabled: YES];
dot语法[UIApplication sharedApplication].idleTimerDisabled = YES;
iPhone开发中经常用到这些尺寸,在这里做一下记录。
Element Size (in points)Window (including status bar) 320 x 480 ptsStatus Bar(How to hide the status bar) 20 ptsView inside window(visible status bar) 320 x 460Navigation Bar 44 ptsNav Bar Image /Toolbar Image up to 20 x 20 pts (transparent PNG)Tab Ba ...
No.
Demo Name
115
DropBox
Post Link
1
ButterflyDemo
Check!
位图字体工具Bitmap Font ToolsBMFont (Windows)FonteditorGlyph DesignerHieroLabelAtlasCreator
http://developer.apple.com/iphone/library/samplecode/Reachability/Reachability.ziphttp://developer.apple.com/iphone/library/samplecode/avTouch/avTouch.ziphttp://developer.apple.com/iphone/library/samplecode/AdvancedURLConnections/AdvancedURLConnections.ziphttp://developer.apple.com/iphone/library/sam ...
NSMutableDictionary *custDict = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/private/var/mobile/Media/iTues_Control/iTunes/Ringtones.plist"];
NSMutableDictionary *dictionary = [custDict objectForKey:@"Ringtones"];
NSArray *keys = [dictionary allKeys];
id key = ...
//保存数据
- (IBAction)save:(id)sender
{
// Hide the keyboard
[firstNameTextField resignFirstResponder];
[lastNameTextField resignFirstResponder];
[ageTextField resignFirstResponder];
// Create strings and integer to store the text info
NSString *firstName = [first ...
//获取文件路径
NSString *path = [[NSBundlemainBundle] pathForResource:@"user" ofType:@"plist"];
//获取数据
NSMutableDictionary* dict = [[NSMutableDictionaryalloc] initWithContentsOfFile:path];
NSString* object = [dict objectForKey:@"aaa"];
NSLog(object ...
//遍历比较
NSArray *myArray = [NSArray arrayWithObjects:@"this", @"is", @"double one", nil];
NSUInteger i;
for(i = 0; i < count; i++){
NSString *element = [myArray objectAtIndex:i];
if([element isAwesomeString]){
NSLog(@"CONGRATULATIONS");
}
}
...
我的机器CPU是i5
镜像文件什么都没改动,东皇的镜像直接下载dmg格式,留条后路:
http://bbs.kenapple.com/forum-viewthread-tid-77950-highlight.html(不可用)
2.硬盘安装助手,把它装到U盘上
加载HFSExplorer生成的镜像,只选写入选项, 下面的三 ...
//StringBuffer类可以完成字符串的动态添加、插入和替换等操作。
String question = new String("1+1=");
int answer = 3;
boolean result = (1+1==3);
StringBuffer sb = new StringBuffer();
sb.append(question);
sb.append(answer);
sb.append(‘\t‘);
sb.append(result);
System.out.println(s ...
//网络判断
/*
法一
http://www.th7.cn/Program/IOS/2012/03/01/61663.shtml
*/
-(NSString *)GetCurrentNet{
NSString *result;
Reachability *r = [ReachabilityreachailityWithHostName:@"www.apple.com"];
switch([r currentReachabilityStatus]){
caseNotReachable:
result = nil;
br ...
1) Project->Info->Deployment Target->iOS Deployment Target更改为 当前/更早的设备版本号; 2) Target->Summary->iOS Application Target->Deployment Target更改 当前/更早的设备版本号;
"screenSize"
"smallestScreenSize"
以上两个是在 API level 13 之后才加进去的。
报错内容:Could not find class 'com.google.ads.AdView'
解决方法:The solution for this problem is create a folder “libs” under your project, and moving your Admob SDK jar to “libs” folder.