上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 39 下一页

2014年3月31日

iOS 判断某一日期是否在一日期区间

摘要: -(BOOL)date:(NSDate*)date isBetweenDate:(NSDate*)beginDate andDate:(NSDate*)endDate{ if ([date compare:beginDate] == NSOrderedAscending) return NO; if ([date compare:endDate] == NSOrderedDescending) return NO; return YES;} 阅读全文

posted @ 2014-03-31 16:30 Hai_阔天空 阅读(872) 评论(0) 推荐(0)

2014年3月28日

iOS 本地推送通知

摘要: //// AppDelegate.m// ClockTest//// Created by Chocolate. on 14-3-26.// Copyright (c) 2014年 redasen. All rights reserved.//#import "AppDelegate.h"@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ //一种方式 U 阅读全文

posted @ 2014-03-28 22:01 Hai_阔天空 阅读(366) 评论(0) 推荐(0)

2014年3月13日

iOS json解析中包含“\n”等解析出错

摘要: 文题算是解决了,把特殊字符替换一下:-(NSString *)JSONString:(NSString *)aString {NSMutableString *s = [NSMutableString stringWithString:aString];//[s replaceOccurrencesOfString:@"\"" withString:@"\\\"" options:NSCaseInsensitiveSearch range:NSMakeRange(0, [s length])];//[s replaceOccurren 阅读全文

posted @ 2014-03-13 09:29 Hai_阔天空 阅读(1251) 评论(0) 推荐(0)

2014年2月26日

iOS UILabel两侧加阴影

摘要: 1 - (void)viewDidLoad 2 { 3 [super viewDidLoad]; 4 [self.view setBackgroundColor:[UIColor grayColor]]; 5 // Do any additional setup after loading the view, typically from a nib. 6 MarqueeLabel *label = [[MarqueeLabel alloc]initWithFrame:CGRectMake(0, 0, 100, 20)]; 7 label.backgr... 阅读全文

posted @ 2014-02-26 16:45 Hai_阔天空 阅读(1249) 评论(0) 推荐(0)

2014年2月20日

IOS 设置ios中DatePicker的日期为中文格式

摘要: 设置ios中DatePicker的日期为中文格式1.在模拟器中的“设置”-“通用”-“多语言环境”-“语言”设置为“简体中文”,2.“区域格式”设置为“中国”。 阅读全文

posted @ 2014-02-20 11:55 Hai_阔天空 阅读(740) 评论(0) 推荐(0)

2014年2月19日

[分享] 关于App Store下载到一半发生错误的问题 [复制链接]

摘要: 问题:昨天发现Pages无法更新,结果卸载在App Store里重新下载。下载到快结束的时候,提示“发生错误”,同时提示“在‘已购’中再试一次”。结果在已购中,Pages显示的是安装按钮,点击安装,显示下载快结束的进度条,同时再次提示错误,如此反复。尝试重启,注销apple ID,均无效果。在应用程序中也找不到正在下载的文件,因此无法删除以下载的文件,进而也无法重新下载。解决:尝试在网上搜了类似问题,好像也一些朋友也碰到过类似的问题,但是并没有解决方法。致电Apple,他们的解决方法是另建一个账户,重新下载Pages。试过之后,pages可以使用,但是在App Store旁边还是会有“发生错误 阅读全文

posted @ 2014-02-19 15:51 Hai_阔天空 阅读(759) 评论(0) 推荐(0)

2014年2月18日

ios笔试題

该文被密码保护。 阅读全文

posted @ 2014-02-18 09:27 Hai_阔天空 阅读(2) 评论(0) 推荐(0)

ios笔试题(选择题)

摘要: 1-10 C语言 & 计算机基础1、请看下面一段代码static int a = 1;int main(){ int b = 2; char *c = NULL; c = (char *)malloc(100 * sizeof(char)); return 0;} 请问访问a,b,c 3种类型变量的效率从高到低依次是A. cbaB. abcC. acbD. bca(B)2、下面四种内部排序算法中哪一种在最差情况下时间复杂度最高?A. 快速排序B. 冒泡排序C. 堆排序D. 归并排序(B)3、Shell中,将command1的输出作为comm... 阅读全文

posted @ 2014-02-18 00:03 Hai_阔天空 阅读(4166) 评论(0) 推荐(0)

2014年1月25日

Android 通过findViewById方式创建TabHost

摘要: 1 package org.shuxiang.tabhostsample; 2 3 import android.os.Bundle; 4 import android.app.ActivityGroup; 5 import android.content.Intent; 6 import android.widget.TabHost; 7 8 public class MainActivity extends ActivityGroup 9 { 10 private... 阅读全文

posted @ 2014-01-25 11:49 Hai_阔天空 阅读(370) 评论(0) 推荐(0)

2014年1月22日

android 开发 - 结束所有activity

摘要: 每一个activity都有自己的生命周期,被打开了最终就要被关闭。 四种结束当前的activity方法 1 //关闭当前activity方法一 2 finish(); 3 4 //关闭当前界面方法二 5 android.os.Process.killProcess(android.os.Process.myPid()); 6 7 //关闭当前界面方法三 8 System.exit(0); 9 10 //关闭当前界面方法四 11 ... 阅读全文

posted @ 2014-01-22 11:42 Hai_阔天空 阅读(344) 评论(0) 推荐(0)

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 39 下一页

导航