码迷,mamicode.com
首页 >  
搜索关键字:blocks    ( 1311个结果
Swift-7-闭包
// Playground - noun: a place where people can playimport UIKit// swift 中闭包与C和OC中的blocks比较相似// 1. 利用上下文推断参数和返回值类型 2. 单表达式闭包可以省略return关键字 3. 参数名称简写 4. ...
分类:编程语言   时间:2014-11-23 18:57:07    阅读次数:162
漫谈Objective-C在语法上的进化
Objective-C 2.0从2006年正式发布至今已经有8年了。Apple在此期间也不断地为其注入新的语法特性,比如Blocks、NSNumber literal、NSNumber literal、NSArray literal、NSDictionary literal、Object subsc...
分类:其他好文   时间:2014-11-23 01:54:59    阅读次数:193
java语言-俄罗斯方块Java源码案例
只提供参考源码import java.awt.*;import java.applet.Applet;public class Blocks extends Applet implements Runnable{Dimension d;Font largefont= new Font("Helvet...
分类:编程语言   时间:2014-11-21 10:19:27    阅读次数:253
iOS中Blocks的介绍
iOS中Blocks的介绍1. 什么是Blocks Blocks是C语言的扩充功能。如果用一句话来概括就是:带有自动变量的匿名函数。 第一次看见Blocks的时候,感觉很类似C语言的函数指针,尤其是Block类型变量,更是有极强的相似度。但Blocks不是一个指针,而是一个不带名字的函数,它...
分类:移动开发   时间:2014-11-20 14:59:13    阅读次数:392
浅谈 关于ARC循环引用得问题
这段时间在研究关于ARC得循环引用导致变量不能释放,在此先介绍一本书英文书:《Pro Multithreading and Memory Management for iOS and OS X with ARC, Grand Central Dispatch, and Blocks》(《iOS与OS...
分类:其他好文   时间:2014-11-18 13:08:57    阅读次数:176
Vs2012在Linux开发中的应用(1):开发环境
在Linux的开发过程中使用过多个IDE,code::blocks、eclipse、source insight、还有嵌入式厂商提供的各种IDE,如VisualDsp等,感觉总是不如vs强大好用。虽然VS并不提供gcc的编译和调试支持,在之前的开发中只能充当一个编辑器的作用,但VS提供了强大的SDK,本文将探讨如何扩展VS,使之支持Linux的开发。         其实像Visual Gd...
分类:系统相关   时间:2014-11-17 19:29:14    阅读次数:190
eclipse(STS,myeclipse)老是报ThreadPoolExecutor$Worker.run()
资料地址:http://stackoverflow.com/questions/6290470/eclipse-debugger-always-blocks-on-threadpoolexecutor-without-any-obvious-exceptieclpise debug 模式的线程经常会...
分类:系统相关   时间:2014-11-17 15:48:03    阅读次数:433
hadoop1安全异常:The ratio of reported blocks 1.0000 has reached the threshold 0.9990.
hadoop启动时报如下错误:错误分别在namenode和jobTracker日志文件都有org.apache.hadoop.hdfs.server.namenode.SafeModeException:Cannotdelete/usr/hadoop/tmp/mapred/system.Namenodeisinsafemode.Theratioofreportedblocks1.0000hasreachedthethreshold0.9990.Safemodewill..
分类:其他好文   时间:2014-11-16 18:54:48    阅读次数:242
How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu
sudo apt-get updatesudo apt-get install nginxsudo mkdir -p /var/www/example.com/htmlsudo chown -R $USER:$USER /var/www/example.com/htmlsudo chmod -R 7...
分类:系统相关   时间:2014-11-15 16:45:33    阅读次数:244
ZOJ 3790 Consecutive Blocks
二分...
分类:其他好文   时间:2014-11-14 22:51:58    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!