上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 首先打开xcode->window->organizer,在左下角点击+,然后add repository,如下图:接下来在Name中输入工程名称(自定),在Location中输入您配置的svn路径,然后next,如图:如果svn路径没错,则下面直接点击Add,即可连接到svn服务器了。选择要修改的工程,可以check out到本地目录,并在左边的导航栏中列出已经check out出的工程。如图:点击左边check out出的工程,可以对工程文件进行update、commit等操作。 阅读全文
posted @ 2012-03-17 00:12 FoxBabe 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 今天工程编译的时,显示错误:Unsupported compiler 'GCC 4.2' selected for architecture 'i386'xcode build errors:Unsupported compiler ‘GCC 4.2′ selected for architecture ‘i386′Solution:This can be caused by importing a project for a pre- iOS 5 SDK into a copy of xcode with iOS 5 SDK only.To fix, clic 阅读全文
posted @ 2012-03-16 18:30 FoxBabe 阅读(807) 评论(0) 推荐(1) 编辑
摘要: 工程截图:ViewController.h//// ViewController.h// NSXMLParserDemo//// Created by Fox on 12-3-15.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import <UIKit/UIKit.h>@interface ViewController : UIViewController<NSXMLParserDelegate>- (void)parseXMLFileAtURL:(NSURL *)URL parseE 阅读全文
posted @ 2012-03-15 22:17 FoxBabe 阅读(412) 评论(1) 推荐(1) 编辑
摘要: 通过Reachability来判断设备的网络环境,方法比较简单。直接将Reachability.h和Reachability.m加入到工程中,然后添加SystemConfiguration.framework框架,就可以使用了。工程截图:ViewController.h//// ViewController.h// NetworkStatusDemo//// Created by Fox on 12-3-15.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import <UIKit/UIKit.h> 阅读全文
posted @ 2012-03-15 16:25 FoxBabe 阅读(1163) 评论(0) 推荐(0) 编辑
摘要: 该工程是使用苹果官方的GameKit框架来实现蓝牙设别之间的通信,首先当然是要在项目中加入GameKit.framework框架。工程的截图如下:ViewController.h如下://// ViewController.h// GameKitDemo//// Created by Fox on 12-3-14.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import <UIKit/UIKit.h>#import <GameKit/GKSession.h>#import <Ga 阅读全文
posted @ 2012-03-15 14:27 FoxBabe 阅读(5575) 评论(0) 推荐(1) 编辑
摘要: 参考来源:http://www.cnblogs.com/zhanglong0426/archive/2010/10/07/1845268.html高级一些的编辑器,都会包含宏功能,vim当然不能缺少了,在vim中使用宏是非常方便的::qx 开始记录宏,并将结果存入寄存器xq 退出记录模式@x 播放记录在x寄存器中的宏命令稍微解释一下,当在normal模式下输入:qx后,你对文本的所有编辑动作将会被记录下来,再次输入q即退出了记录模式,然后输入@x对刚才记录下来的命令进行重复,此命令后可跟数字,表示要重复多少次,比如@x20,可以重复20次。这个在文本的批处理中是非常有用的。同时编辑多个文件在v 阅读全文
posted @ 2012-03-14 22:56 FoxBabe 阅读(316) 评论(2) 推荐(1) 编辑
摘要: CoreBluetooth是Apple官方的框架,但是缺点是只支持IOS5,iPad2 和 iPhone4都不支持,iPhone4s支持。限制太大了,CoreBluetooth-Demo是个开源项目,点击这里下载。 阅读全文
posted @ 2012-03-14 19:13 FoxBabe 阅读(2209) 评论(0) 推荐(0) 编辑
摘要: 运行激活软件toolkit.txt 2.33,如果出现应用程序正常初始化失败,则应该下载最新的 .NET Framework 4,按后再激活,版本低是不行的,另外.NET Framework最好在官网上下载,否则也可能失败。附上下载地址:Microsoft .NET Framework 4(独立安装程序) 阅读全文
posted @ 2012-03-14 18:57 FoxBabe 阅读(2275) 评论(0) 推荐(0) 编辑
摘要: UIDevice-IOKitExtensions.h/* Erica Sadun, http://ericasadun.com iPhone Developer's Cookbook, 3.0 Edition BSD License, Use at your own risk *//* http://broadcast.oreilly.com/2009/04/iphone-dev-iokit---the-missing.html In Xcode, I was surprised to see that Apple didn't include IOKit header fil 阅读全文
posted @ 2012-03-14 13:39 FoxBabe 阅读(938) 评论(0) 推荐(0) 编辑
摘要: 开发环境使用的是目前为止最新的稳定版软件:Mac OS X Lion 10.7 + Xcode 4.1各步骤会标明版本,比如(Xcode4.1请执行)和(Xcode4.2请执行)未标明的步骤为两个版本均需执行的步骤!当然您需要先越狱您的设备并通过Cydia安装AppSync众所周知,在Xcode上开发的程序只能在模拟器中运行,如果要放到真机上则要花费99美金购买开发者证书iDP。这严重阻碍了我等草根开发者探索的脚步。写个小程序,同学间分享一下这个小小的愿望都不能满足,自然不能善罢甘休。在没有iDP的情况下,要想将程序放到iPhone上调试,并最终发布IPA用于分享,需要以下几个步骤:1.自己为 阅读全文
posted @ 2012-03-14 09:15 FoxBabe 阅读(444) 评论(1) 推荐(1) 编辑
摘要: 建立UIApplicationDelegateDemo主要用来明确应用程序进入前台、按home键进入后台以及在此唤醒进入前台函数的调用顺序。 1 // 2 // AppDelegate.h 3 // UIApplicationDelegateDemo 4 // 5 // Created by Fox on 12-3-14. 6 // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. 7 // 8 9 #import <UIKit/UIKit.h>10 11 @class ViewController;12 13. 阅读全文
posted @ 2012-03-14 08:53 FoxBabe 阅读(499) 评论(0) 推荐(0) 编辑
摘要: @protocol UIApplicationDelegate<NSObject>@optional- (void)applicationDidFinishLaunching:(UIApplication *)application;//当程序完成载入后调用- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);//当程序完成载 阅读全文
posted @ 2012-03-13 21:56 FoxBabe 阅读(2613) 评论(0) 推荐(1) 编辑
摘要: 参考来源一:http://xiongzhend.blog.163.com/blog/static/64098501201041383342989/参考来源二: http://blog.iosxcode4.com/archives/23 iPhone可以使用CoreLocation框架确定他的物理位置,可以利用三种技术来实现该功能:GPS,WiFi定位和蜂窝基站三角网定位。但在程序中我们只需设定我们希望的精度级别,由CoreLocation决定采用哪种技术可以更好的满足我们的请求。1.Wi-Fi定位扫描本地路由器,使用它们的MAC地址搜索一个中心位置数据库,所有iPhone和iPod tou.. 阅读全文
posted @ 2012-03-13 21:17 FoxBabe 阅读(922) 评论(0) 推荐(1) 编辑
摘要: 前期尝试过私有API,但是没有成功,还是用下面这个方法吧!获取IMEI:1 UIDevice *myDevice = [[UIDevice alloc] init];2 3 NSString *myimei = [myDevice imei];4 5 if (myimei.length!=15) {6 myimei = @"0000000000000000";7 }获取UID: UIDevice *device = [UIDevice currentDevice];//创建设备对象 NSString *deviceU... 阅读全文
posted @ 2012-03-13 20:14 FoxBabe 阅读(2941) 评论(0) 推荐(0) 编辑
摘要: 1 #import <UIKit/UIKit.h> 2 3 @interface UITestViewController : UIViewController <UIWebViewDelegate> 4 { 5 6 } 7 8 @end 9 10 11 //12 // UITestViewController.m13 // UITest14 //15 16 #import "UITestViewController.h"17 18 @implementation UITestViewController19 20 - (void)viewDidLo 阅读全文
posted @ 2012-03-13 13:25 FoxBabe 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 #import <UIKit/UIKit.h> 2 3 @interface UITestViewController : UIViewController <UIWebViewDelegate> 4 { 5 6 } 7 8 @end 9 10 11 12 13 //14 // UITestViewController.m15 // UITest16 //17 18 #import "UITestViewController.h"19 20 UIActivityIndicatorView *activity;21 22 @implementati 阅读全文
posted @ 2012-03-13 13:24 FoxBabe 阅读(355) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad { [super viewDidLoad]; CGPoint frameCenter = self.view.center; float width = 50.0; float height = 50.0; CGRect viewFrame = CGRectMake(frameCenter.x-width,frameCenter.y-height, width*2, height*2); UIView *myView = [[UIView alloc] initWithFrame:viewFra... 阅读全文
posted @ 2012-03-13 13:22 FoxBabe 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // UITestViewController.m 3 // UITest 4 // 5 6 #import "UITestViewController.h" 7 8 @implementation UITestViewController 9 10 11 - (void)buttonClick:(id)sender {12 13 NSLog(@"you clicked button: %@",[sender title]);14 }15 16 - (void)viewDidLoad {17 18 [super viewDidLoad];. 阅读全文
posted @ 2012-03-13 13:18 FoxBabe 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // UITestViewController.h 3 // UITest 4 // 5 6 #import <UIKit/UIKit.h> 7 8 @interface UITestViewController : UIViewController <UITextViewDelegate> 9 { 10 11 } 12 13 @end 14 15 16 17 // 18 // UITestViewController.m 19 // UITest 20 // 21 22 #import "UITestViewController.h" 阅读全文
posted @ 2012-03-13 13:17 FoxBabe 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // UITestViewController.h 3 // UITest 4 // 5 6 #import <UIKit/UIKit.h> 7 8 @interface UITestViewController : UIViewController <UITextFieldDelegate> 9 { 10 11 } 12 13 @end 14 15 16 17 18 // 19 // UITestViewController.m 20 // UITest 21 // 22 23 #import "UITestViewControll... 阅读全文
posted @ 2012-03-13 13:16 FoxBabe 阅读(305) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页