if (ios_Vewsion_5_Or_Above) {//iOS 5系统之后的版本
self.tableView.bounces =
NO;
} else {
for (id subview
in self.tableView.subviews)
if ([[subview
class] isSubclassOfCl...
分类:
其他好文 时间:
2014-07-22 23:03:13
阅读次数:
281
self.myScrollView.frame =
CGRectMake(0,
self.stateNavigationHight-216+80,
320, [self
getUIScreenHight]-113);
[UIView
beginAnimations:@"roseImageViewAnimation"
context:(__bridge
void*)sel...
分类:
其他好文 时间:
2014-05-01 22:16:12
阅读次数:
362
@interface DemoObj()@property (nonatomic, strong)
NSOperationQueue *queue;@end@implementation DemoObj- (instancetype)init{ self =
[super init]; ...
分类:
移动开发 时间:
2014-05-01 20:28:37
阅读次数:
917
demo下载地址:http://pan.baidu.com/s/1mgBf6YG
_logoImageView.image = [self
getEllipseImageWithImage:[UIImage
imageNamed:@"1_wsq724439564.jpg"]];
-(UIImage*)getEllips...
分类:
移动开发 时间:
2014-05-01 17:56:47
阅读次数:
445
Problem 1:Given a set of distinct integers, S,
return all possible subsets.Note:Elements in a subset must be in non-descending
order.The solution set ...
分类:
其他好文 时间:
2014-05-01 09:43:43
阅读次数:
414
首先想到的是,将这个数进行素因子分解,得到所有的因子,然后取最大的。
首先写一个判断一个数是否是素数的方法: #judge a number whether a prime def
judgePrime(self,number,pme): if number < 2: ...
分类:
编程语言 时间:
2014-05-01 09:05:26
阅读次数:
3333
NSPredicate:对self每个对象通过谓词进行筛选,判断是否与条件相匹配。作用相当于数据库的过滤取。主要用于从集合中分拣出符合条件的对象,也可以用于字符串的正则匹配第一、contains
判断 NSArray*array = [[NSArrayalloc]initWithObjects:.....
分类:
其他好文 时间:
2014-05-01 02:43:05
阅读次数:
258
- (void)drawRect:(CGRect)rect
{
[super drawRect:rect];
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextSetRGBFillColor(ctx, .3, .3, .3, .1);
CGContextFillRect(ctx, self.boun...
分类:
其他好文 时间:
2014-04-29 13:33:22
阅读次数:
284
NSPredicate:对self每个对象通过谓词进行筛选,判断是否与条件相匹配。原理和用法都类似于SQL查询中的where,作用相当于数据库的过滤取。主要用于从集合中分拣出符合条件的对象,也可以用于字符串的正则匹配
第一、contains 判断
NSArray *array = [[NSArray
alloc]initWithObjects:@"beijing",@"s...
分类:
其他好文 时间:
2014-04-29 13:32:23
阅读次数:
375