自定义了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 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
你可以创建一个Silverlight应用程序,与SharePoint之间self-contained, low-touch的集成。...
分类:
Web程序 时间:
2014-06-26 07:40:43
阅读次数:
206
刚学python,学到了有关于类和对象的地方。对一个概念有点模糊,后来通过实践编码找到一定规律
在python中
class test(object):
id=2
name='tt' list=['tt','dd']
def change(self,newA,new_id):
self.id=new_id
self.age=new...
分类:
编程语言 时间:
2014-06-25 19:29:20
阅读次数:
267
python解释器将__init__函数里的__z变量转成 _classname__z了,明确规则后外部依旧能够通过实力对象来訪问。In [1]: class aa: ...: def __init__(self): ...: self.x = 10 ...: ...
分类:
编程语言 时间:
2014-06-25 16:12:09
阅读次数:
211
iOS开发多线程篇—线程的状态一、简单介绍线程的创建:self.thread=[[NSThread alloc]initWithTarget:self selector:@selector(test) object:nil];说明:创建线程有多种方式,这里不做过多的介绍。线程的开启:[self.th...
分类:
移动开发 时间:
2014-06-25 11:55:02
阅读次数:
306
NSIndexPath *messageIndexPath = [NSIndexPath indexPathForRow:afterRowCount-1 inSection:0];
[self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:@[messageIndexPath] withRowAnim...
分类:
其他好文 时间:
2014-06-25 09:59:01
阅读次数:
191
1、ios7 tableviewcell上面添加一个view,view上面有button,点击button不执行button的点击事件
解决办法:
self.view.userInteractionEnabled = YES;
[cell.contentView addSubview:self.view]
主要问题是cell的高度没有view本事的高度高,造成view没有完全在ce...
分类:
移动开发 时间:
2014-06-25 07:12:58
阅读次数:
263
加入 CoreImage.framework CoreGraphic.framework 等库
在使用时引入:#import
,支持iOS 5.0 及以上。
-(void)show
{
UIImage* img = [self
getBlurImage:[UIImage
imageNamed:@"Default...
分类:
移动开发 时间:
2014-06-24 17:23:41
阅读次数:
297