`
iaiai
  • 浏览: 2147689 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

[IOS] 'NSInternalInconsistencyException', reason: 'request for rect at invalid i

 
阅读更多
错误:
引用

2012-12-13 09:59:03.038 jzny[17354:11303] *** Assertion failure in -[UITableViewRowData rectForRow:inSection:], /SourceCache/UIKit_Sim/UIKit-2372/UITableViewRowData.m:1630
2012-12-13 09:59:03.039 xxxx[17354:11303] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'request for rect at invalid index path (<NSIndexPath 0x719c380> 2 indexes [0, 0])'
*** First throw call stack:
(.........)
libc++abi.dylib: terminate called throwing an exception
(lldb)


如果出现以上错误是说UIPickerView绑定数据时,判断如果没有数据就设置pickView.userInteractionEnabled=NO就OK了~~~
-(NSInteger) pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{
    [list count]==0?selectPicker.userInteractionEnabled=NO:nil;
    return [list count];
}
分享到:
评论

相关推荐

    解决出现Incorrect integer value: ” for column ‘id’ at row 1的问题

    解决出现Incorrect integer value: ” for column ‘id’ at row 1的问题 前言: 今天在学习Python的过程中操作数据库,遇到了一个问题,执行sql语句插入数据的时候报错Incorrect integer value: ” for column ‘id...

    模仿Ios 开关

    模仿ios开关 __kswThumbDrawable__: drawable for thumb * __kswThumbColor__: color for thumb * __kswThumbMargin__: margin from thumb to back, can be negative. maybe cover by single direction margins * __...

    Python实现绘制双柱状图并显示数值功能示例

    本文实例讲述了Python实现绘制双柱状图并显示数值功能。分享给大家供大家参考,具体... for rect in rects: height = rect.get_height() plt.text(rect.get_x()+rect.get_width()/2.-0.2, 1.03*height, '%s' % floa

    rect_test.zip_it_rect matlab_rect function

    It is just exerciseing of signal processing. ( Rect function, Convolution, etc. ) ( making tri-functioin(: rect * rect) and performing FFT ),

    Application Request Route (v2.5):

    Application Request Route (v2.5)

    Recton V2.5(远程控制)

    Recton V2.5(远程控制)

    LabelImg:绘制对象rect并添加一些属性

    标签图 LabelImg是图形图像注释工具。 它是用Python编写的,并将Qt用于其图形界面。 批注以PASCAL VOC格式( 所使用的格式)另存为XML文件。 安装 下载预编译的二进制文件 苹果系统。 macOS的二进制文件尚不可用...

    Delphi以特效方式显示图片的示例.rar

    Delphi以特效方式显示图片的示例,适用的图像对象为BMP,在显示图片的时候,不是出现,而是有动画效果的渐现,不过... for I:=0 to Step do  begin  MidX:=Round(RatioX*I);  with Rect1 do //设置复制的目标区域

    Delphi 7.0 得到Memo中的可见行数.rar

     tempint := (Rect.Bottom - Rect.Top) div Memo.Font.Height div -1;  finally  ReleaseDC(Memo.Handle, Hand);  end;  Result := tempint;  end;    procedure TForm1.BitBtn1Click(Sender: TObject);  ...

    ChromeDriver v2.44

    ----------ChromeDriver v2.44 (2018-11-19)-------...Resolved issue 2655: Set Window Rect needs to check for invalid input [[Pri-3]] Resolved issue 2597: Support new unhandledPromptBehavior modes [[Pri-3]]

    rect_data.rar_FIX_rect_data

    rect_data.c: fix for shared libraries in SunOS4.0. Code was isolated rectlist.c and rect.c.

    chromedriver_2.37

    ----------ChromeDriver v2.37 ...Resolved issue 1937: Get element rect is not implemented [[Pri-2]] Resolved issue 2329: ChromeDriver does not allow value of 0 for extensionLoadTimeout option [[Pri-2]]

    rectbox_rectbox_decidevm6_matlab矩形绘图_绘图_matlab_

    matlab自带的annotation函数不能通过指定矩形的x、y坐标来绘图。自己写的这个rectbox函数补充这个功能:rectbox(x y w h)其中xy是左下角点的坐标,wh是宽高。

    jspdf html页面生成pdf

    jspdf html页面生成pdf j jspdf html页面生成pdfspdf html页面生成pdf

    Vue-drag-resize 拖拽缩放插件的使用(简单示例)

    字幕 &lt;drag-resize v-for=(rect,index) in texts style=overflow: hidden; :w=rect.BoxWidth :h=rect.BoxHeight :x=rect.BoxLeft :y=rect

    observe-rect:观察DOM元素的Rect

    安装npm install @reach/observe-rect# oryarn add @reach/observe-rect用法import observeRect from "@reach/observe-rect" ;let node = document . getElementById ( "some-node" ) ;let rectObserver = ...

    一维rect函数的matlab程序

    一维rect函数的matlab程序 可以为初学者提供一定的参考

    ios-评价的星星swift.zip

    如:WSStar.starView.StarInView(view: self.view, rect: CGRect(x: 120, y: 80, width: 125, height: 30), currentStars: 3.5, allStars: 5, isContrainsHalfStar: false, isVariable: false) 参数: view:需要...

    H5 css3海上邮轮动画效果.zip

    代码片段:  &lt;rect id="smoke1" x="173" y="225" width="18" height="10"/&gt;  &lt;rect id="smoke2" x="173" y="225" width="18" height="10"/&gt; ... &lt;rect id="smoke4" x="173" y="225" width="18" height="10"/&gt;

Global site tag (gtag.js) - Google Analytics