`
wsqwsq000
  • 浏览: 675629 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
Xcode方法提示显示的不正确,只显示方法名称不显示参数及参数值的解决办法是: 右击“Finder” 选择 “前往文件夹” 输入 “~/library”,进入“Developer”  -> "Xcode" -> "DerivedData",删除所有东西,重启Xcode。  
  - (NSArray *)sortedArrayUsingSelector:(SEL)comparator Parameters comparator A selector that identifies the method to use to compare two elements at a time. The method should returnNSOrderedAscending if the receiver is smaller than the argument, NSOrderedDescending if the receiver is larger ...
    就像题目说的,这次的小项目是做一个新浪微博的客户端。 平台是Xcode4.2,用storyboard和ARC,因为自己一开始接触ios开发就学的是ios5的,所以就一直都是用storyboard和arc进行开发,对于之前的xib和没有arc的开发,以后会找机会学习,各有各的优缺点吧。storyboard的话,各个场景之间的切换一目了然,可以在一个屏幕上管理所有视图,xib的话,就需要用代码来串接各个视图。但是storyboard帮我们完成了很多工作,使得对于底层的一些运作不是很清晰。相反的,看了一些xib的例子,觉得那些在代码上视图的关系比较清晰,但是没有那么方便咯。 好了, ...
    tapkulibrary-CloverFlow http://wiki.github.com/devinross/tapkulibrary/coverflow 不仅仅是coverflow效果,很高内容的库   OpenFlow
    1.访问音乐库的两种方法, (只能访问音频文件,如music,podcast,audiobook等) 2.MPMusicPlayerController的使用 有两种播放器可以选择,一种是application music player,另外一种是iPod music player。 第一种播放器是一种内部播放器,当程序对出后停止播放;而第二种播放器则与iPod播放器内的信息相关,退出之后不会停止播放。获取方式如下: + applicationMusicPlayer + iPodMusicPlayer 播放之前需要设置播放器的播放队列 – setQueu ...
iphone苹果商店审核扫描图片
  本文转载自:http://blog.csdn.net/nmgfrank/article/details/6955105     最近,需要将苹果的HTTP Live Streaming系统搭建起来。完全没有头绪,故第一步就是学习。 一、学习资料 官网资料 1. http://developer.apple.com/resources/http-streaming/ 具体的搭建方案         使用segmenter将现成的视频文件分割,并生成列表文件。 1. http://blog.csdn.net/zhoujunming/article/detail ...
    One of the things I like most about Apple’s iOS SDK is the consistent and easy-to-use API they provide.  Across all their different frameworks there’s a pattern at work that makes using their classes easy to understand.  This is due in part to the simplicity for configuring those objects.  In ...
Key-Value Observing 快速入门   翻译:杨登峰 (dengfengyang@gmail.com) 时间:2010-03-12 转帖请注明转之 苹果开发中文网(http://www.CocoaDev.cn) 以上说明是本文不可分割的一部分。   假如需要掌握Key-Value Observing机制,那么需要 ...
    Objective-C里面的Key-Value Observing (KVO)机制,非常不错,可以很好的减少浇水代码。关于KVO的学习,可以参考文章:《Key-Value Observing快速入门》:http://www.cocoadev.cn/Objective-C/Key-Value-Observing-Quick-Start-cn.asp   Key-Value Coding(KVC)实现分析     KVC运用了一个isa-swizzling技术。isa-swizzling就是类型混合指针机制。KVC主要通过isa-swizzling,来实现其内部查找定位的。 ...
    OpenGL VBO顶点缓冲的使用 OpenGL VBO并不难,但是较繁琐,其实其概念跟加载纹理是一样的:初始化阶段:1. glGenBuffersARB(1, &nVBOVertices); //生成一个句柄2. glBindBufferARB(GL_ARRAY_BUFFER_ARB, nVBOVertices); //声明该句柄为一个vbo句柄,并选择之3. glBufferDataARB(GL_ARRAY_BUFFER_ARB, sizeof(vertices), vertices,GL_STATIC_DRAW); //将顶点集上传至server端使用阶段:1 ...
  生成一个不规则图形的方式,比如下面的效果: 需要将文字部分用多边形圈起来。这里做了一个多边形的图,然后填充为黑色,设置了alpha透明度,就产生了这样的效果。 代码如下:
    For attributes whose type is an immutable value class that conforms to the NSCopying protocol, you almost always should specify copy in your @property declaration. Specifying retain is something you almost never want in such a situation. Here's why you want to do that: NSMutableString *some ...
    iphone开发中调用打电话功能,一般有2种: 1、系统的打电话代码,不返回当前程序:   [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://1008611"]];   2、用UIWebView来实现,打电话结束后会返回当前应用程序:   UIWebView *callPhoneWebVw = [[UIWebView alloc] init]; NSURLRequest *request = [NSURLRequest requ ...
    Objective-C 2.0 中增加了@dynamic 指令,表示变量对应的属性访问器方法,是动态实现的,你需要在NSObject 中继承而来的+(BOOL) resolveInstanceMethod:(SEL) sel 方法中指定动态实现的方法或者函数。 Person.h:   @interface Person : NSObject{  
Global site tag (gtag.js) - Google Analytics