草庐IT

index_length

全部标签

javascript - 如何在 ios 7 的 cordova 3.9.2 中删除 index.html

这是在cordova应用程序中显示的警报alert("welcometoall");当我在ios7中运行应用程序时,它会显示index.htmlwelcometoall要删除index.html我使用了cordova插件cordova-plugin-dialogsdocument.addEventListener("deviceready",alert,false);functionalert(){navigator.notification.alert("welcometoall");}但它不适合我请告诉我们一些细节,以便在ioscordova应用程序中显示native警报。注意:在

ios - RCTBatchedBridge.m 错误 : Invalid data message - all must be length:%zd. React Native, iOS 模拟器

我正在使用react-native-oauth并在尝试授权时收到此错误(请参阅底部的红色图像)。我已经搜索并找到了这个similarunansweredquestion.我查看了源代码并找到了wheretheerrorisraised在第954行,似乎是因为moduleIDs.count应该等于methodIDs.count和paramsArrays.count:if(RCT_DEBUG&&(moduleIDs.count!=methodIDs.count||moduleIDs.count!=paramsArrays.count)){RCTLogError(@"Invaliddatam

ios - UICollectionview 自定义布局 : some indexes have more visible cells than others?

我遇到了一个奇怪的问题,我似乎无法弄清楚或无法在线找到任何相关信息。因此,我尝试使用UICollectionView和自定义UICollectionViewFlowlayout复制ShazamdiscoverUI。到目前为止一切都运行良好,但是当我(或者更确切地说是实现它的人)添加“卡片堆”效果时,注意到似乎有一个奇怪的问题,在某些情况下(或者更确切地说,当特定索引可见时,在示例中它是第5、9行)将有4个可见单元格而不是3个。我的猜测是这与单元格重用有关,但我不确定为什么它正在这样做。我查看了各个单元格的尺寸,它们似乎都相同,所以并不是单元格的大小不同。有人知道为什么会发生这种情况吗?

ios - UITableView 数组返回错误 'index 0 beyond bounds for empty array'

我已经在我的MatchCenterViewController中以编程方式创建了一个UITableView,但是它似乎没有填充我的云代码函数返回的JSON数据。它崩溃并给我以下错误:2014-06-0820:56:23.762Parse+Storyboard[9136:607]***Terminatingappduetouncaughtexception'NSRangeException',reason:'***-[__NSArrayIobjectAtIndex:]:index0beyondboundsforemptyarray'***Firstthrowcallstack:(0Cor

iphone - 我的代码在使用核心数据时崩溃并出现 'index beyond bounds' 错误

我不确定如何解决这个问题。每次用户滚动并在UITableView中显示时,此代码都会在每个单元格中运行:self.isFinishedProcessing=NO;[selfsetNeedsDisplay];[self.mediaArrayremoveAllObjects];self.mediaArray=[[NSMutableArrayalloc]init];dispatch_queue_tqueue=dispatch_queue_create("setup_cell",NULL);NSManagedObjectID*objectID=[self.entryobjectID];disp

ios - 核心图 : Setting length of global range not working

首先,我有一个图表(CoreplotLinechart)。我已经设置了图形的defaultPlotspace的x范围和y范围。-(void)setUpXRangeForPlotspace:(CPTXYPlotSpace*)plotSpace{intrangeLength=[selfxRangeLength];plotSpace.xRange=[CPTPlotRangeplotRangeWithLocation:CPTDecimalFromFloat(-0.5f)length:CPTDecimalFromFloat(rangeLength+1.0)];}-(void)setUpYRang

ios - Tableview 按钮获取 index.row

我在tableview单元格中有一个按钮(名为“deleteTemplate”),当它被按下时我应该得到按钮所在单元格的“index.row”。任何人都知道如何获得“index.row”对于单元格,当您单击单元格中的按钮时?我当前的按钮代码:UITableViewCell*clickedCell=(UITableViewCell*)[[sendersuperview]superview];NSIndexPath*clickedButtonIndexPath=[self.tableViewindexPathForCell:clickedCell];NSDictionary*dic=[ta

ios - 异常 'NSRangeException' ,原因 : '*** -[__NSArrayM objectAtIndex:]: index 19 beyond bounds [0 .. 18]'

我已经找过其他类似的帖子,但没有一个能解决我的问题。我收到此错误:***Terminatingappduetouncaughtexception'NSRangeException',reason:'***-[__NSArrayMobjectAtIndex:]:index19beyondbounds[0..18]'我正在使用搜索栏和显示Controller从PARSE.COM数据库获取数据。这是我的代码:#import"busquedaViewController.h"@interfacebusquedaViewController()@end@implementationbusqued

iOS7 Safari : tapping on fixed positioned header bar with higher z-index triggers event handler of the element underneathe it

我的网页有一个固定位置的标题栏。当您滚动时,内容将使用z-index位于标题栏下方。单击内容区域中的block将切换其颜色。单击标题中的任意位置不应触发block的事件处理程序。但这在iOS7Safari上不起作用。点击标题使block改变颜色。当我搜索互联网时,它似乎是iOS7的错误。试过window.scrollTo(0,0)和额外的20px东西,没有帮助。有趣的是,我在iOS7移动版Safari上的YahooFinance和YahooSport网络应用程序上注意到了同样的问题,它们也有固定的标题。有人知道一个好的解决方案吗?代码如下:header{position:fixed;t

ios - NSRangeException',原因 : '*** -[__NSArrayI objectAtIndex:]: index 2 beyond bounds [0 . 。 1] 核心数据和 NSFR 错误

我有一个简单的应用程序,它是一个两个选项卡UITabBarController.第一个标签被称为Languages它包含应用程序中的硬编码语言列表。在prepareForSegue方法,我正在通过NSMutableArray填充该语言的传单和视频列表并将其成功传递给新的UITableViewController叫LeafletsAndVideos.有些语言有传单和视频,有些语言只有传单,传单在第0部分,视频在第1部分。引用这个问题:ChangingtheUIImageofaspecificUITableViewCellwhenaneventoccurs,我已经在LeafetsAndVi