移动端开发真是不断踩坑,今天在做一个移动端的组件,又发现了一个坑,记录到日志里面,做个记录,以便以后再遇到这个问题有个记录可以参考。在ios中的chrome浏览器中,手指从屏幕上方移动出屏幕(一定要经过屏幕边缘划出屏幕)时,不能触发touchend的事件,但是这个touchend事件并不是消失了,而...
分类:
移动开发 时间:
2015-04-07 19:15:58
阅读次数:
174
iOS 开发代码规范1.命名https://github.com/Chinamobo/iOS-Team-Norms/blob/master/CodeStyle.md#naming-basic-principlehttps://github.com/foxsofter/ios-code-styleht...
分类:
移动开发 时间:
2015-04-07 19:13:12
阅读次数:
158
前几天去国美在线面试,就遇到了上面的问题,当时是笔试,只写出来了第一种方法,现在整理了一下。 //1.performSelector方法;在当前线程中执行的方法,使用默认模式,并延迟执行@selector方法。 [self performSelector:@selector(runDela...
分类:
移动开发 时间:
2015-04-07 19:13:02
阅读次数:
185
//设置导航栏baritem和返回baiitem样式UIBarButtonItem *barItem = [UIBarButtonItem appearance];//去掉返回按钮上的字[barItem setBackButtonTitlePositionAdjustment:UIOffsetMak...
分类:
移动开发 时间:
2015-04-07 19:11:11
阅读次数:
156
https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP4000925...
分类:
其他好文 时间:
2015-04-07 19:09:15
阅读次数:
138
Q:表视图只需要部分单元格,怎样删除下方多余的空白单元格?A:代码如下- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { return [UIView new];}
分类:
移动开发 时间:
2015-04-07 19:08:04
阅读次数:
142
GIT忽略iOS项目UserInterfaceState.xcuserstate1.删除仓库中跟踪的UserInterfaceState.xcuserstate git rm --cached iamhere/IAmHere.xcodeproj/project.xcworkspace/xcuser....
分类:
其他好文 时间:
2015-04-07 19:02:06
阅读次数:
147
fstream(const char* filename, ios::openmode);ios::app: 以追加的方式打开文件ios::ate: 文件打开后定位到文件尾,ios:app就包含有此属性ios::binary: 以二进制方式打开文件,缺省的方式是文本方式。两种方式的区...
分类:
其他好文 时间:
2015-04-07 19:02:03
阅读次数:
87
dependency analysis warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'xxx/Info.plist'.
出现Warning的原因
遇到这种情况,是因为在合成项目,或者添加项目文件时,将Info.plist 文件以下列方式加入到了项目中。...
分类:
其他好文 时间:
2015-04-07 17:51:10
阅读次数:
162
一、UIApplication
1.简单介绍
(1)UIApplication对象是应用程序的象征,一个UIApplication对象就代表一个应用程序。
(2)每一个应用都有自己的UIApplication对象,而且是单例的,如果试图在程序中新建一个UIApplication对象,那么将报错提示。
(3)通过[UIApplicationsharedApplication]...
分类:
移动开发 时间:
2015-04-07 17:51:07
阅读次数:
136