自定义了TabBarController 之后必须实现以下方法才能避免报错-(void)viewWillAppear:(BOOL)animated{ [self.selectedViewController beginAppearanceTransition: YES animated: an...
分类:
移动开发 时间:
2014-06-26 23:37:32
阅读次数:
320
iOS开发多线程篇—GCD的常见用法一、延迟执行1.介绍iOS常见的延时执行有2种方式(1)调用NSObject的方法[selfperformSelector:@selector(run)withObject:nilafterDelay:2.0];// 2秒后再调用self的run方法(2)使用GC...
分类:
移动开发 时间:
2014-06-26 23:00:12
阅读次数:
468
Class and Objectclass TestClass { val some = 1}生成的class文件中会包含一个some()方法,并且这个方法是public的,也就是说类外可以通过类的对象来获取这个some的值修改:class TestClass { private val som.....
分类:
其他好文 时间:
2014-06-26 22:31:24
阅读次数:
270
Basic Types and OperationsSomething new according to Java1 + 2跟(1).+(2)是一样的。val str = "Hello world"str indexOf 'o' 跟 str.indexOf('o')是一样的indexOf有两种形式的...
分类:
其他好文 时间:
2014-06-26 19:26:48
阅读次数:
193
模块模块同类一样,也有 class method 和 instance method。module 没有new不能生成实例对象其中 class method 在模块中称为模块方法,是可以直接调用的。module Foo
def self.hello
puts 'hello world!'
end
def Foo.dear #module全局作用域内的self还是没有变,就是...
分类:
其他好文 时间:
2014-06-26 14:19:28
阅读次数:
163
Everything You Wanted to Know About Machine Learning
翻译了理解机器学习的10个重要的观点,加入了自己的理解,这些原则在大部分情况下也许是这样,但是具体问题具体分析才是王道,不加思索的应用只能是一知半解。所以张小龙才说‘我说的都是错的’。 note by 王犇
1. How Does Machine Learning Work...
分类:
其他好文 时间:
2014-06-26 14:15:48
阅读次数:
240
Given a string s consists of upper/lower-case alphabets and empty space characters
' ',
return the length of last word in the string.
If the last word does not exist, return 0.
Note...
分类:
其他好文 时间:
2014-06-26 13:55:01
阅读次数:
179
【题目】
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
【题意】
给定一个整数数组,其中除了一个数以外,其他数都是成对出现的,...
分类:
其他好文 时间:
2014-06-26 10:13:27
阅读次数:
254
你可以创建一个Silverlight应用程序,与SharePoint之间self-contained, low-touch的集成。...
分类:
Web程序 时间:
2014-06-26 07:40:43
阅读次数:
206
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is...
分类:
其他好文 时间:
2014-06-25 10:30:08
阅读次数:
220