不好意思各位,本人休息了一个礼拜,所以这次的进度延后了,而且这次的学习的内容比较多,时间用的也比较长,文章发布的时间间隔有些长了,望各位谅解,下面继续我们的ios之旅。这次我们主要学习的内容有2个,一个是Tab Bar,如下图 很熟悉的界面(iphone中的phone),另一个Picker,如下图....
分类:
移动开发 时间:
2014-06-27 13:45:02
阅读次数:
401
拦截短信有几个关键点:1.android接收短信时是以广播的方式2.程序只要在自己的Manifest.xml里加有"接收"SMS的权限3.要写个广播接收类publicclasssmsreceiveandmaskextendsBroadcastReceiver{privateStringTAG="sm...
分类:
移动开发 时间:
2014-06-27 13:43:03
阅读次数:
291
汉字转拼音的库主要是:pinyin https://github.com/hotoo/pinyinPYMethod https://github.com/a85816841/PotentialGragonSnail/tree/master/ql/lib/pinyingPOAPinyin h...
分类:
移动开发 时间:
2014-06-27 13:31:58
阅读次数:
232
+(UIImage *)getImage:(NSString *)videoURL{AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:[NSURL fileURLWithPath:videoURL] options:nil];AVAssetIma...
分类:
移动开发 时间:
2014-06-27 13:15:09
阅读次数:
243
在IOS开发中经常会用到回调的情况,下面介绍如何用block实现回调。1 #import 2 3 @interface BLock : NSObject4 5 + (void)getBlock:(void (^)(NSString *))someblock;6 7 @endBLock.h 1 #im...
分类:
移动开发 时间:
2014-06-27 13:05:40
阅读次数:
159
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
分类:
移动开发 时间:
2014-06-27 12:51:24
阅读次数:
258
1、方法定义call方法:语法:call([thisObj[,arg1[, arg2[, [,.argN]]]]])定义:调用一个对象的一个方法,以另一个对象替换当前对象。说明:call 方法可以用来代替另一个对象调用一个方法。call 方法可将一个函数的对象上下文从初始的上下文改变为由 thisO...
分类:
移动开发 时间:
2014-06-27 12:37:46
阅读次数:
303
让我们继续JC和DZY的故事。“你是我的小丫小苹果,怎么爱你都不嫌多!”“点亮我生命的火,火火火火火!”话说JC历经艰辛来到了城市B,但是由于他的疏忽DZY偷走了他的小苹果!没有小苹果怎么听歌!他发现邪恶的DZY把他的小苹果藏在了一个迷宫里。JC在经历了之前的战斗后他还剩下hp点血。开始JC在1号....
分类:
移动开发 时间:
2014-06-27 12:36:37
阅读次数:
257
接着上次的记录,续写。23、services文件夹 文件 描写叙述class AlarmManagerService extends IAlarmManager.Stub {//定时管理服务public class AppOpsService extends IAp...
分类:
移动开发 时间:
2014-06-27 11:35:40
阅读次数:
452
iOS 两个tableview的 瀑布流1. [代码]Objective-C //// DocViewController.m// getrightbutton//// Created by 隋文涛 on 12-12-9.// Copyright (c) 2012年 隋文涛. All rights....
分类:
移动开发 时间:
2014-06-27 11:25:19
阅读次数:
365
1.Server.MapPath("/")//应用程序根目录所在的位置如C:/Inetpub/wwwroot/2.Server.MapPath("./")//表示所在页面的当前目录//注:等价于Server.MapPath("")返回Server.MapPath("")所在页面的//物理文件路径3....
分类:
移动开发 时间:
2014-06-27 11:20:02
阅读次数:
197
?1. [代码][其他]代码 void *bitmapData; //内存空间的指针,该内存空间的大小等于图像使用RGB通道所占用的字节数。static CGContextRef CreateRGBABitmapContext (CGImageRef inImage){CGContextRef c....
分类:
移动开发 时间:
2014-06-27 11:19:28
阅读次数:
275
首先,有一点需要声明,其实在android中,画布Canvas的高宽其实是屏幕的高宽。如此一来,获得屏幕高宽的方法就很多了:1.Java代码WindowManagerwindowManager=getWindowManager(); Displaydisplay=windowManager.getD...
分类:
移动开发 时间:
2014-06-27 11:05:42
阅读次数:
199
“你当然可以不相信理想,但是你也应该相信,有一些人相信理想”
google I/O今日发布了许多新品,罗列为:Android Wear,Android Auto,Android TV,Android L,Google Fit 5个软件平台,Material Design设计语言和Android One手机,也提及了Android Silver。
哇哦,我想google...
分类:
移动开发 时间:
2014-06-27 10:44:15
阅读次数:
300
关于Android模拟器的现状,分析Android模拟器很慢的原因,以及解决方法。Genymotion模拟器的简介,优缺点对比,和使用效果图。...
分类:
移动开发 时间:
2014-06-27 08:41:17
阅读次数:
241
问题产生:
当在本地配置好自己的avd的时候(因为本地可以有图形界面,当ssh连接到机房服务器时,只能是无界面的,所以需要先在本地配置好),发送到服务器时,avd想放到和工程一个目录,而不是当前默认的~/.android/avd下,所以遇到找不到avd这个问题,现解决方案如下:...
分类:
移动开发 时间:
2014-06-27 07:31:55
阅读次数:
215
android 支付宝集成 使用常见错误...
分类:
移动开发 时间:
2014-06-27 07:32:39
阅读次数:
280
单例模式的实现方式...
分类:
移动开发 时间:
2014-06-27 09:04:43
阅读次数:
265
/*************************************1*******************************************/
/*************************************2*******************************************/
/*********************...
分类:
移动开发 时间:
2014-06-27 07:55:28
阅读次数:
267
- (void)timerFireMethod:(NSTimer*)theTimer//弹出框
{
UIAlertView *promptAlert = (UIAlertView*)[theTimer userInfo];
[promptAlert dismissWithClickedButtonIndex:0 animated:NO];
promptAlert =NULL...
分类:
移动开发 时间:
2014-06-27 09:21:00
阅读次数:
219