Fork me on GitHub

2012年5月25日

摘要: http://magicalboy.com/ios_gps_location/在 iOS 平台上使用CLLocationManager获取 GPS 位置信息,比如经度,纬度,海拔高度等是很简单的事情。步骤加入 CoreLocation.framework , 导入头文件。#import <CoreLocation/CoreLocation.h>在 AppDelegate.m 中加入检测是否启用位置服务功能。CLLocationManager *manager = [[CLLocationManager alloc] init];if (manager.locationService 阅读全文
posted @ 2012-05-25 14:28 pengyingh 阅读(4846) 评论(0) 推荐(0)
摘要: nib是NeXT Interface Builder的缩写。xib 是xml nib文件,于2007年 Leopard (and Xcode 3.0) 版本中更新。以源码方式打开查看:< ?xml version="1.0" encoding="UTF-8"?>78410F2521……相同点:NIB 和 XIB 都是 Interface Builder 的图形界面设计文档。Interface Builder 把窗口、菜单栏以及窗口上的各种控件的对象都“冻结”在了一个 NIB文档里面了;程序运行时,这些对象将会“苏醒”。不同点:NIB为二进制文 阅读全文
posted @ 2012-05-25 14:14 pengyingh 阅读(3926) 评论(0) 推荐(1)
摘要: Do anyone tried GLPaint sample application with OpenGl ES 2.0 ? I had a try an got errors with glMatrixMode(), glPointSize(), glOrthof(), glTexEnvf() methods .All of those errors are because the code uses functions and constants that wereremovedin OpenGL ES 2.0. If you want to make that app use Open 阅读全文
posted @ 2012-05-25 10:15 pengyingh 阅读(2060) 评论(0) 推荐(0)

导航