摘要: 注意:设置星期几为每周开始- (void)setFirstWeekday:(NSUInteger)weekday设置每周的第一天从星期几开始,比如:1代表星期日开始,2代表星期一开始,以此类推。默认值是1相关链接:http://www.cnblogs.com/wayne23/archive/2013/03/25/2981009.html 阅读全文
posted @ 2014-02-13 10:44 MyAppZone7797 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 先利用device编译获得lib.a文件,再用模拟器得到lib_x64以及lib_x86的.a文件;再将其进行打包lipo -create lib.a lib_x64.a lib_x86 -output lib.a得到打包的.a文件,再和头文件一起,静态库就算打包成功本人利用coreplot打包,经过模拟器ios5/6/7/7(64bit),真机进过IOS6(5)/7(4s) 测试PS:如果有不对的地方,还请各位大大纠正! 阅读全文
posted @ 2013-12-17 11:01 MyAppZone7797 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 可以在applicationWillEnterForeground中加入[ [UIApplication sharedApplication].keyWindow.rootViewController presentViewController: animation:YEScompletion:^{ }];解决问题 阅读全文
posted @ 2013-12-06 13:45 MyAppZone7797 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 原链接:http://blog.csdn.net/chengyingzhilian/article/details/7872410完整代码:@implementationClassForSelectors- (void) fooNoInputs {NSLog(@"Does nothing");}- (void) fooOneIput:(NSString*) first {NSLog(@"Logs %@", first);}- (void) fooFirstInput:(NSString*) first secondInput:(NSString*) se 阅读全文
posted @ 2013-11-28 14:42 MyAppZone7797 阅读(218) 评论(0) 推荐(0) 编辑
摘要: -convertPoint: toView:获取试图坐标系之间的坐标变换[UITableView indexPathForRowAtPoint:] 获得行序列号例如:- (IBAction)cellButtonTapped:(id)sender { UIButton *button = sender; CGPoint correctedPoint = [button convertPoint:button.bounds.origin toView:self.tableView]; NSIndexPath *indexPath = [self.table... 阅读全文
posted @ 2013-11-27 16:33 MyAppZone7797 阅读(340) 评论(0) 推荐(0) 编辑
摘要: ios7导航栏和状态栏现在都归于导航栏,因此导航栏高度增加40px,也就变成了128px,那么就判断系统版本,具体方法: float version = [[[UIDevice currentDevice] systemVersion] floatValue]; if(version>=7.0) { [self.navigationBar setBackgroundImage:LOADIMAGE(@"test", @"png") forBarPosition:UIBarPositionTopAttached barMetrics:UIBarMetr 阅读全文
posted @ 2013-11-19 15:09 MyAppZone7797 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://zhang8mss.blog.163.com/blog/static/1104637562012260250222/生成p12需要3个文件:1,本机在https://developer.apple.com/ios/manage/certificates/team/index.action生成certifacates时上传的本机证书:CertificateSigningRequest.certSigningRequest2,从https://developer.apple.com/ios/manage/overview/index.action的app IDs里拿到的Pus 阅读全文
posted @ 2013-10-14 14:16 MyAppZone7797 阅读(277) 评论(0) 推荐(0) 编辑
摘要: OpenGL的各种数据类型:GLenum: 用于GL枚举的无符号整型。通常用于通知OpenGL由指针传递的存储于数组中数据的类型(例如,GL_FLOAT用于指示数组由GLfloat组成)。GLboolean: 用于单布尔值。OpenGL ES还定义了其自己的“真”和“假”值(GL_TRUE和GL_FALSE)以避免平台和语言的差别。当向OpenGL传递布尔值时,请使用这些值而不是使用YES或NO(尽管由于它们的定义实际没有区别,即使你不小心使用了YES或NO。但是,使用GL-定义值是一个好的习惯。)GLbitfield: 用于将多个布尔值(最多32个)打包到单个使用位操作变量的四字节整型。我们 阅读全文
posted @ 2013-09-17 10:59 MyAppZone7797 阅读(253) 评论(0) 推荐(0) 编辑
摘要: android布局: 线性布局,相对布局,绝对布局,帧布局(继承ViewGroup,表格布局android相关组件及功能: 文本框组件:TextView和EditText 按钮组件:Button和ImageButton 特殊按钮组件:RadioButton(单选按钮)、CheckBox(复选框按钮)、ToggleButton(功能与CheckBox类似,通常用于切换程序中的某种状态) 图片浏览组件:ImageView 时间显示组件:AnalogClock与DigitalClock 高级组件: 自动完成文本框:AutoCompleteTextView 需要设置Adapter,预... 阅读全文
posted @ 2013-09-17 10:57 MyAppZone7797 阅读(194) 评论(0) 推荐(0) 编辑
摘要: JAVA基础:(个人理解,刚开始学,有错误麻烦大家纠正,谢谢.)1、修饰符 class 类名{ //Do something; } public static void main(String[] args){ 这属于函数入口}2、数组:int x[] = new int[100];3、成员变量、局部变量4、get/set 实现类似属性访问public class Person{private int age; public int getArea(){ return age; } public void setArea(int i){ this.age = age; }}... 阅读全文
posted @ 2013-09-17 10:55 MyAppZone7797 阅读(213) 评论(0) 推荐(0) 编辑