草庐IT

method-names

全部标签

ios - 编译时错误 : No known instance method for selector 'setDetailItem:'

在Xcode5.0.2中,我为iPhone创建了一个空白的Detail-Master应用。然后在Main.storyboard中,我将UILabel替换为UIWebView,并在DetailViewController.h中将其声明为webView.我还用NSDictionary*dict替换了id*defaultItem:#import@interfaceDetailViewController:UIViewController@property(strong,nonatomic)NSDictionary*dict;@property(weak,nonatomic)IBOutletU

机器人中的数值优化(十四)——罚函数法(Penalty Method)、障碍函数法(Barrier Method)、拉格朗日松弛法(Lagrangian Relaxation)

  本系列文章主要是我在学习《数值优化》过程中的一些笔记和相关思考,主要的学习资料是深蓝学院的课程《机器人中的数值优化》和高立编著的《数值最优化方法》等,本系列文章篇数较多,不定期更新,上半部分介绍无约束优化,下半部分介绍带约束的优化,中间会穿插一些路径规划方面的应用实例  本篇文章主要介绍使用使用序列无约束优化处理约束优化的3种方法:罚函数法(PenaltyMethod)、障碍函数法(BarrierMethod)、拉格朗日松弛法(LagrangianRelaxation)。  二十一、罚函数法(PenaltyMethod)  1、将等式约束转换为二次惩罚项  罚函数法即适应于不等式约束,又适

iphone - iOS :Call a method in specific time

我正在尝试在此时调用一个方法:00:01AM这是我的代码,但我找不到为什么这段代码不调用我的方法的问题。-(BOOL)date:(NSDate*)datehour:(NSInteger)hminute:(NSInteger)m{NSCalendar*calendar=[[NSCalendaralloc]initWithCalendarIdentifier:currentCalendar];NSDateComponents*componets=[calendarcomponents:(NSHourCalendarUnit|NSMinuteCalendarUnit)fromDate:[NS

iphone - NSPredicate 在数组中排除 "name"

我有这个名称数组(listedName),我想在fbFriends数组中过滤掉并删除它们。我该怎么做?看来我的条款不起作用。//add"names"tolistednamearrayNSMutableArray*aTempFriendList=[[NSMutableArrayalloc]init];for(intn=0;n 最佳答案 应该是@"not(namein%@)"。 关于iphone-NSPredicate在数组中排除"name",我们在StackOverflow上找到一个类似的

iphone - 忽略 "UIViewController may not respond to [method]"警告的方法

有没有办法让编译器忽略这个特定的警告?这是我的做法:UIViewController*firstViewController=AppDelegate.instance.viewController;//opentheviewoftheclickedsubItemif([firstViewControllerrespondsToSelector:@selector(openView:inView:)]){[firstViewControlleropenView:subItem.itemText.textinView:activeScreen];//warningonthisline}我知

ios - 使用钛合金,我正在尝试制作基本的 : name password and email field. 我该怎么做?

我正在用Titanium制作应用程序。XML不同于NetBeans。例如:Login这会将2个TextField和按钮全部放在彼此之上...是吗? 最佳答案 Firsttakealookatthedocs.关于如何styleyourviews.这些指南很有帮助。然后为您的窗口尝试垂直布局,并为您的输入尝试更明确的尺寸:Login这应该让你开始。 关于ios-使用钛合金,我正在尝试制作基本的:namepasswordandemailfield.我该怎么做?,我们在StackOverflow

ios - 显示核心数据 : If attribute has same name display once

我查看了许多谓词问题,我已经阅读了文档,但似乎没有什么可以跳出来回答我的问题。我有一个名为Materials的核心数据实体,并且我有属性category、subcategory和description。我有三个UITableViewControllers,我想在每个中使用谓词来显示如下:TableViewController1:只有类别(不重复类别名称)选择一个类别并转到TableViewController2。TableViewController2:显示子类别(不重复子类别名称)选择一个子类别并转到TableViewController3列出该类别和子类别中的所有项目。如果不在核心

ios - 为什么 UIFont(描述符 :size:) is x200 slower than UIFont(name:size:)?

最近我注意到滚动的性能正在减慢。我追踪了问题,发现原因是使用了UIFont(descriptor:size:)创建的字体。构造函数。我更改了UIFont(name:size:)的构造函数我的问题都解决了。我在project中隔离了问题.代码是:importUIKitclassViewController:UIViewController{@IBOutletweakvarfirstLabel:UILabel!@IBOutletweakvarsecondLabel:UILabel!@IBActionfunconStartTest(sender:AnyObject){startMeasure

ios - 如何将 Core Data name.xcdatamodel 从一个文件夹移动到另一个文件夹?

应该很简单,我已经创建了单View应用程序并检查了代码数据。它为我创建了name.xcdatamodel文件。应用程序开发取得了进一步进展,我想将所有与模型相关的文件移动到模型文件夹中。我创建了模型文件夹,将name.xcdatamodel移动到其中,并将其添加到项目中。应该很简单,期望编译器/链接器警告我:oldLocation/name.xcdatamodeld/name.xcdatamodel/contents:warning:Missingfile:oldLocation/name.xcdatamodeld/name.xcdatamodel/contentsismissingf

1064,“您在SQL语法MySQL Server版本中有一个错误,可用于合适的语法,以便在'1select f.name附近使用

当我尝试点击MySQL数据库时,我会在Django中遇到此错误。但是当我在db中运行此查询时,我得到了正确的结果,我的查询就像"selectf.name,scheduleDepart.depart_time,scheduleArrive.arrival_time,ai.namefromflightasf,airlineasai,flight_scheduleasscheduleDepartinnerjoinflight_scheduleasscheduleArriveonscheduleDepart.flight_id=scheduleArrive.flight_idwhereschedule