关键词:
1.
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [[self nextResponder] touchesBegan:touches withEvent:event]; [super touchesBegan:touches withEvent:event]; } -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { [[self nextResponder] touchesMoved:touches withEvent:event]; [super touchesMoved:touches withEvent:event]; } -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { [[self nextResponder] touchesEnded:touches withEvent:event]; [super touchesEnded:touches withEvent:event]; }
第16月第10天pocotarget
1.voidTCPServer::start(){ poco_assert(_stopped); _stopped=false; _thread.start(*this);} voidThread::start(Runnable&target){startImpl(target);}...v 查看详情
第10月第10天git
1.多人协作阅读:493906当你从远程仓库克隆时,实际上Git自动把本地的master分支和远程的master分支对应起来了,并且,远程仓库的默认名称是origin。要查看远程库的信息,用gitremote:$gitremoteorigin或者,用gitremote-v显示更详细的信息... 查看详情
第27月第10天cmake(代码片段)
1.error:tool‘xcodebuild‘requiresXcode的解决办法 sudoxcode-select--switch/Applications/Xcode.app/Contents/Developer/ https://blog.csdn.net/shorewb/article/details/52447554 2 查看详情
第10月第1天storyboarduitableviewcell
1. 如图,我们在Cell的属性界面对其进行了注册,identifier为"TableViewCell"不需要在ViewDidLoad对其进行注册了,如果进行注册的话,则对xcode来说你引用的不是storyboard上的定义的Cel,而是你创建的空Cell类了,所以显示为空白. http://blog.c... 查看详情
第13月第10天swift3.0
1.Type‘Any‘hasnosubscriptmembers 这一条简直莫名其妙。大体意思就是,你这个类型"Any"不是个数组或者字典,不能按照下标取东西。 我之前通过一个方法默认创建了一个字典,编译器也认为这是个字典,所以允许我取东西,... 查看详情
第43月第10天uiimage写文件(代码片段)
1.-(void)saveImage:(CGImageRef)imagedirectoryURL:(NSURL*)directoryURLfilename:(NSString*)filename@autoreleasepoolNSURL*fileURL=[directoryURLURLByAppendingPathComponent:filename];//fileURL=[NSURLfileURLWithPath:[NSStringstringWithFormat:@"%@/%@",directory,filename]];CFURLRefurl=(__bridgeCFURLRef)file... 查看详情
第28月第11天vim-b
1.首先以二进制方式编辑这个文件: vim-bdatafile现在用xxd把这个文件转换成十六进制: :%!xxd文本看起来像这样: 0000000:1f8b080839d7173b02037474002b4e49 ..... 查看详情
第9月第3天uilabelcontentscale
1. http://blog.csdn.net/u012703795/article/details/43706449 查看详情
第9月第30天mvp
1. importUIKitstructPerson{//ModelletfirstName:StringletlastName:String}protocolGreetingView:class{funcsetGreeting(greeting:String)}protocolGreetingViewPresenter{init(view:GreetingView,person:Per 查看详情
第16月第27天pipinstallvirtualenv
1.pipinstallvirtualenvvirtualenvtestvircdtestvircdScriptsactivatepipinstalldjango==1.9.8 https://zhuanlan.zhihu.com/p/32286726 查看详情
第2月第24天coretext行高
1.NSMutableAttributedString 行高 NSMutableAttributedString*attributedString=[[NSMutableAttributedStringalloc]initWithString:labelText];NSMutableParagraphStyle*paragraphStyle=[[NSMutableParagra 查看详情
第37月第29天avplayer截屏
1.-(void)displayLinkCallback:(CADisplayLink*)sender{CMTimetime=[snapshotOutputitemTimeForHostTime:CACurrentMediaTime()];if([snapshotOutputhasNewPixelBufferForItemTime:time]){lastSnapshotPixelBuffer=[s 查看详情
第5月第18天视频编辑水印
1.//***********ForASpecialTimeCABasicAnimation*animation=[CABasicAnimationanimationWithKeyPath:@"opacity"];[animationsetDuration:0];[animationsetFromValue:[NSNumbernumberWithFloat:1.0]];[animationsetT 查看详情
第16月第3天afurlsessionmanager
1. -(AFURLSessionManagerTaskDelegate*)delegateForTask:(NSURLSessionTask*)task{ NSParameterAssert(task); AFURLSessionManagerTaskDelegate*delegate=nil; [self. 查看详情
第25月第11天deeplearning.ai
1.网易云课堂深度学习工程师点击进入课程地址(英文)(收费)点击进入课程地址(中文)(免费)第一门神经网络和深度学习第二门改善神经网络第三门结构化机器学习项目第四门卷积神经网络第五门序列模型 查看详情
第11月第14天openglyuv
1.Hereissomesnippetsofcodefrommyproject‘movieplayerforiOS‘.1.fragmentshadervaryinghighpvec2v_texcoord;uniformsampler2Ds_texture_y;uniformsampler2Ds_texture_u;uniformsampler2Ds_texture_v;voidmain(){hig 查看详情
第26月第3天javagradle
1.430/Applications/AndroidStudio.app/Contents/gradle/gradle-2.8/bin/gradle-v434mkdirgradle01435cdgradle01 437 /Applications/AndroidStudio.app/Contents/gradle/gradle-2.8/bin/gradleinit--typ 查看详情
第5月第6天nsoperationisconcurrent
1. @implementationAFURLConnectionOperation...-(BOOL)isConcurrent{returnYES;} NSOperation调用start方法即可开始执行操作,NSOperation对象默认按同步方式执行,也就是在调用start方法的那个线程中直接执行。NSOperation对象的isConcurrent方法会告诉我... 查看详情