`
咖啡动力
  • 浏览: 435390 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
private SlipButton button = (SlipButton) findViewById(R.id.slipButton); button.setChecked(false); button.invalidate();
This bundle is invalid. the key CFBundleVersion in the Info.plist file must 出现这个问题在info.plist里面改过Bundle version版本还是不行,可能是由于下面的原因引起的。 简单翻译一下答案 1、苹果会把版本号中开头的0删掉。例如,“1.02”会被当做“1.2”,所以“1.02”就会变成比“1.1”更高的版本。 2、有的时候苹果会混乱= = 有可能把当前提交的App的版本号与你以前创建过的其他App的版本号进行比较。这个情况也是很常见的⋯⋯ 3、记得别弄混了,是“CFBundleVersion”不是 ...
xcode4.5.1、iphone5、ios6 适配 1.修改工程名:直接选中工程名点一下,就像修改名称夹名称一样简单了。 2.导入旧工程解决xcode4.5以后模拟器屏幕不旋转的问题 if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0)     self.window.root ...
1,Incorrect decrement of the reference count of an object that is not owned at this point by the caller 这种问题一般就是变量申请了内存并初始化了,但没有使用此变量,接着将此变量又重新赋值。如下:     NSString *imageString = [[NSString alloc] init];      imageString = @"HResout";  2,Receiver in message expression is a garbage valu ...
解决“The NIB data is invalid”的简单方法:在xib文件的Document Inspector中去除use Autolayout
Finishing up a navigation transition in an unexpected state. Navigation Bar 这个问题是在同一个UIViewcontroller里面多次push另外同一个UIViewcontroller引起的
Unbalanced calls to begin/end appearance transitions for <uivewcontroller> 原因就是上次动画还没结束,然后又开始了新的动画。  这样就导致不能成功切换页面,而是一个白色无内容的页面。 出现unbalanced calls to begin/end appearance transitions for uiviewcontroller这样的log,其原因就是在容器类的UIViewController(如,UINavigationController, UITabBarController)中动画没做完,然后又 ...
nested push animation can result in corrupted navigation bar 嵌套的navigation动画会造成  navigation bar  错误, 具体表现为上一层的titleview 和这一层重叠, navigationbaritem  维持上一层的左按钮, 右按钮 、、、系统警告提示nested push animation can result in corrupted navigation bar , 大家遇到过这种情况吗?? 嵌套的动画, 是什么意思呢, 为什么会这样, 要怎么解决 结贴~~~~~~~~~~~~~~~ ...
UITableView继承了UIScrollView所以可以使用UIScrollView的方法,设置显示内容的偏移量 [self.tableView setContentOffset:CGPointMake(0, 0) animated:YES];
-(void)viewDidLoad{     [super viewDidLoad];     UIPageControl* pc = [[[UIPageControl alloc] initWithFrame:CGRectMake(100, 400, 120, 27)] autorelease];     pc.numberOfPages = 3;     pc.currentPage = 0;     [pc addTarget:self action:@selector(pageChanged:) forControlEvents:UIControlEventValueChanged]; ...
-(void) ViewFrashData{     [self.tableView setContentOffset:CGPointMake(0, -75) animated:YES];     [self performSelector:@selector(doneManualRefresh) withObject:nil afterDelay:0.4]; } -(void)doneManualRefresh{     [refreshHeaderView egoRefreshScrollViewDidScroll:self.tableView];     [refreshHeaderVie ...
    UIImage *image = [UIImage imageNamed:@"signup_btn"];     UIColor *color = [UIColor colorWithPatternImage:image];
IOS App Icon Size 图标尺寸 
详细使用: UILabel *label = [[UILabelalloc] initWithFrame:CGRectMake(0, 0, 75, 40)];   //声明UIlbel并指定其位置和长宽 label.backgroundColor = [UIColorclearColor];   //设置label的背景色,这里设置为透明色。 label.font = [UIFont fontWithName:@"Helvetica-Bold" size:13];   //设置label的字体和字体大小。 label.transform = CGAffine ...
NSString *str = @"www.baidu.com"; NSURL *URL = [NSURL URLWithString:str];  //string>url NSString *str1 = [URL absoluteString];   //url>string
Global site tag (gtag.js) - Google Analytics