2010 Archives

变态的多种分类设计

| No Comments | No TrackBacks
UITabBarController 进入某个tableViewcontroller后,在进入tableViewcontroller
这个时候如果再点击当前的TabBarItem,会自动调用popViewControllerAnimated
变态设计要出现几个分类按钮,解决问题关键

- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController

{

// NSLog(@"good to see it");

if (self.selectedViewController == viewController ) {

if ([((UINavigationController*)viewController).visibleViewController  respondsToSelector:@selector(showCategoryBtns)]) {

[ (TableViewController*)(((UINavigationController*)viewController).visibleViewController) showCategoryBtns];

return NO;解决问题关键

}

}

return YES;

}

loadNibNamed 的使用

| No Comments | No TrackBacks
感觉很怪怪的

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

{

    static NSString *CellIdentifier = @"ApplicationCell";

    

    ApplicationCell *cell = (ApplicationCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if (cell == nil) {

#if USE_INDIVIDUAL_SUBVIEWS_CELL

        [[NSBundle mainBundle] loadNibNamed:@"IndividualSubviewsBasedApplicationCell" owner:self options:nil];

        cell = tmpCell;

        self.tmpCell = nil;

#elif USE_COMPOSITE_SUBVIEW_CELL

        cell = [[[CompositeSubviewBasedApplicationCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ApplicationCell"] autorelease];

#elif USE_HYBRID_CELL

        cell = [[[HybridSubviewBasedApplicationCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ApplicationCell"] autorelease];

#endif

    }

    

// Display dark and light background in alternate rows -- see tableView:willDisplayCell:forRowAtIndexPath:.

    cell.useDarkBackground = (indexPath.row % 2 == 0);


// Configure the data for the cell.

    NSDictionary *dataItem = [data objectAtIndex:indexPath.row];

    cell.icon = [UIImage imageNamed:[dataItem objectForKey:@"Icon"]];

    cell.publisher = [dataItem objectForKey:@"Publisher"];

    cell.name = [dataItem objectForKey:@"Name"];

    cell.numRatings = [[dataItem objectForKey:@"NumRatings"] intValue];

    cell.rating = [[dataItem objectForKey:@"Rating"] floatValue];

    cell.price = [dataItem objectForKey:@"Price"];


    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;


    return cell;

}

iPhone SDK 3.2 手势识别

| No Comments | No TrackBacks

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {

 

    // Disallow recognition of tap gestures in the segmented control.

    if ((touch.view == segmentedControl) && (gestureRecognizer == tapRecognizer)) {

        return NO;

    }

    return YES;

}

- (void)handleSwipeFrom:(UISwipeGestureRecognizer *)recognizer {


CGPoint location = [recognizer locationInView:self.view];

[self showImageWithText:@"swipe" atPoint:location];

    if (recognizer.direction == UISwipeGestureRecognizerDirectionLeft) {

        location.x -= 220.0;

    }

    else {

        location.x += 220.0;

    }

[UIView beginAnimations:nil context:NULL];

[UIView setAnimationDuration:0.55];

imageView.alpha = 0.0;

imageView.center = location;

[UIView commitAnimations];

}

时间:2010年3月3日星期三 19:30~21:30

地点:奇遇花园咖啡馆(问路电话010-88320741)

地址:西直门北展北街9号华远企业号(华远地产)D座一层(地图附后

联系方式:ignite.bj@gmail.com

本次Ignite Beijing将接受9-12位朋友的讲话报名,接受40位朋友的现场参与报名,活动期间我们可以一同享用简单晚餐和啤酒。所有报名请发邮件到:ignite.bj@gmail.com

【组织者】

端木恒,曾在苹果WWDR部门工作,参加过多次WWDC,对苹果的设计理念有比较深入的理解。

詹膑,清华大学新闻传播学院硕士毕业,现任教于北京服装学院商学院。另从事互联网/传媒/营销领域的顾问,同时经营奇遇花园咖啡馆。

郝培强,银杏搜索技术公司共同创始人,客户包括饭桶网,金融时报中文版,6间房,263.com等等。曾经写过些IT评论,玩过Lego机器人,爱看美剧,爱听相声,爱听和哼一些老男人的流行歌曲,业余做做网站,做Mac开发,iPhone开发,Beta技术沙龙创始人之一。

【合作与赞助】

赞助:O'Reilly

承办:beta技术沙龙,由一群技术人员发起并参与,旨在以技术的视角看待社会、互联网和未来,以务实精神深化交流,促进创新。

协办:betacamp,是一个公共沙龙,以"人本、多元、创新"为理念,关注城市、社会正在发生的变化,关注那些具有创造力的、具有推动社会变革潜力的事物,关注个体平等,强调线上线下的交流与分享。

场地合作:奇遇花园咖啡馆,不仅仅是一个咖啡馆 :) 而是故事、创意、生活和我们每个人。

【地理位置描述】

奇遇花园咖啡馆,位于西直门北展北街9号华远企业号D座底商,从西直门城铁、地铁交汇口处的西环广场(嘉茂商场)北边楼西对面的街道(北展北街)进来西走100米。

iphone ipsw total list

| No Comments | No TrackBacks
[yarshure@yarshures-MacBook-Pro]%curl http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version | grep ipsw | grep -i iphone| sed 's/^[[:space:]]*//g' | sed 's/<string>//g' | sed 's/<\/string>//g'|uniq

http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7473.20100202.4i44t/iPod3,1_3.1.3_7E18_Restore.ipsw

http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7481.20100202.4orot/iPhone1,1_3.1.3_7E18_Restore.ipsw
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7468.20100202.pbnrt/iPhone1,2_3.1.3_7E18_Restore.ipsw
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7472.20100202.8tugj/iPhone2,1_3.1.3_7E18_Restore.ipsw

If I controlled the internet?

| No Comments | No TrackBacks
听的闹挺,自己下在看吧

http://iphone.ipsw.info/TEDTalks.mp4