上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页

2013年1月7日

UISearchDisplayController animate Cancel button

摘要: FUCK, SHIT, etc. 一系列脏话,日了等。为啥,因为烦的要命。主要是碰到了一个问题,我要在UIsearchBar的左边加一个按钮,这样UISearchBar的width就变小窄了。但是每次点击Cancel的时候,UISearBar又填充了整个视图的宽度。如下图:解决方法:-(void)searchDisplayControllerWillBeginSearch:(UISearchDisplayController*)controller{// animate the search bar to the left ie. x=0[UIView animateWithDuration: 阅读全文

posted @ 2013-01-07 17:01 小浪鼓 阅读(877) 评论(0) 推荐(0) 编辑

Unsupported configuration plain style unsupported in a navigation item

摘要: 在IB上,如果你在bar button Item上添加了Round Rect Button 可能会出现这个错误,这是需要将 BarbuttonItem设置成:Bordered 阅读全文

posted @ 2013-01-07 13:32 小浪鼓 阅读(2289) 评论(2) 推荐(0) 编辑

2013年1月5日

dyld:Library not loaded

摘要: dyld:Library not loaded:/System/Library/Frameworks/AdSupport.framework/AdSupportReferenced from:/var/mobile/Applications/8E09C9AA-CA81-4C26-AEED-B2C632B60A54/Gridlocked.app/GridlockedReason: image not found这个bug主要是添加了 AdSupport.framework, 添加 Accounts.framework 和 Social.framework 的时候也会出现类似的错误,当然在6.0的 阅读全文

posted @ 2013-01-05 22:55 小浪鼓 阅读(1958) 评论(0) 推荐(0) 编辑

2013年1月4日

Rail 路由设置

摘要: 在routes.rb文件中,共列举了5种主要路由,分别为默认路由(Default Routes)、资源路由(RESTful Routes)、命名路由(Named Routes)、嵌套路由(Nested Routes)、正则路由(Regular Routes)。1、默认路由 Default Routes顾名思义,默认路由是创建应用时,Rails自动生成的,位于routes.rb文件的最后一行。1match':controller(/:action(/:id(.:format)))'默认路由由’/'分割为3部分,第一部分解释为控制器,第二部分解释为Action方法,第三部分 阅读全文

posted @ 2013-01-04 13:37 小浪鼓 阅读(448) 评论(0) 推荐(0) 编辑

Rails 基本路由

摘要: 转自:http://caterpillar.onlyfun.net/Gossip/Rails/Routing.htmlconfig/routes.rb中的設定,決定了請求會由哪個控制器的動作處理,這邊要先來介紹Rails中典型路由(Regular route)與命令路由(Named route)設定的方式(注意,routes.rb中越前頭的設定會先套用)。你可以設定整個應用程式的首頁,例如若想要在連結http://localhost:3000時,等同於連結http://localhost:3000/messages/index,可以如下:root :to => 'messages 阅读全文

posted @ 2013-01-04 00:16 小浪鼓 阅读(404) 评论(0) 推荐(0) 编辑

2013年1月3日

转:IOS 关键字self,super,copy, retain, assign , readonly , readwrite, nonatomic、@synthesize、@property、@dyna

摘要: #synthesize关键字: 根据@property设置,自动生成成员变量相应的存取方法,从而可以使用点操作符来方便的存取该成员变量 。@implementation 关键字,表明类的实现 @end 结束self 关键字 :类似于java中的this,是隐藏参数,指向当前调用方法的类。super 关键字 :调用父类的方法。self = [super init] 这里不是判断self与[super init]是否相等,而是判断是否可以成功初始化。[super init]:父类初始化成功的话,通过=给self,这样self成为一个非空对象,整个来说即非false(非NO)。#import 告诉预 阅读全文

posted @ 2013-01-03 21:02 小浪鼓 阅读(165) 评论(0) 推荐(0) 编辑

2012年12月18日

JSONKIT : format specifies type 'unsigned long' but the argument has type 'nsuinteger' (aka 'unsigned int')

摘要: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()object->isa 替换为 object_getClass(object) 10处左右keyObject->isa 替换为 object_getClass(keyObject) 一处(id)keys[idx]->isa 替换为 object_getClass((id)keys[idx]) 一处format specifies type 'unsigned lo 阅读全文

posted @ 2012-12-18 14:46 小浪鼓 阅读(6253) 评论(0) 推荐(1) 编辑

2012年12月17日

FaceBook sdk FQL

摘要: 单个查询:SELECT about_me,name,relationship_status,birthday_date,interests,sex,work,education FROM user WHERE uid = me()多个查询NSString *query =@"{"@"'other_info':'SELECT name,education,work FROM user where uid=780798254'," @"'my_info':'SELECT uid, name, 阅读全文

posted @ 2012-12-17 12:00 小浪鼓 阅读(519) 评论(0) 推荐(0) 编辑

2012年12月15日

IOS 实现滚动文字

摘要: 当然最好应该使用block的方式,在此只是标记一下。 self.firstButton.backgroundColor = [UIColorgreenColor]; CGRect frame = self.firstButton.frame; frame.origin.x = 320; self.firstButton.frame = frame; [UIViewbeginAnimations:@"testAnimation"context:NULL]; [UIViewsetAnimationDuration:8.8f]; [UIViewsetAnimationCurve: 阅读全文

posted @ 2012-12-15 16:11 小浪鼓 阅读(8205) 评论(0) 推荐(0) 编辑

如果一个按钮被覆盖如何响应?

摘要: 在他们的父类试图重写该函数//- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {// // UIButton *firstButton = (UIButton *) [self viewWithTag:1];// CGPoint pointInB = [firstButton convertPoint:point fromView:self];// // if ([firstButton pointInside:pointInB withEvent:event])// return firstButto... 阅读全文

posted @ 2012-12-15 15:22 小浪鼓 阅读(437) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页

导航