首页 \ 问答 \ 有没有办法只限制在mysql的下限?(Is there a way to only limit the lower range in mysql?)

有没有办法只限制在mysql的下限?(Is there a way to only limit the lower range in mysql?)

我想获得所有的行,但我的查询中的第一个。 我怎样才能做到这一点?


I want to get all the rows but the first in my query. How can I do this?


原文:https://stackoverflow.com/questions/11641749
更新时间:2023-08-23 08:08

最满意答案

是的,所有看起来都不错,除非你不需要将rightViewController设置为零。 你可以完全放弃它。

titleLabel的问题在于您的FeedVC是MenuViewController的子项。 MenuViewController是导航的子项,因此导航项应该在MenuViewController中设置。 您可以翻转MenuViewController和NavigationController关系,以便Nav是Menu的子项。 然后,您将能够相应地设置FeedVC navigationItem。

希望帮助:)

此外,框架是材质,而不是材质套件。 可能会更好的搜索来纠正:)


Yes, all looks good, except, you do not need to set the rightViewController to nil. You can leave it out completely.

The issue with the titleLabel is that your FeedVC is a child of the MenuViewController. The MenuViewController is a child of the Nav, so the navigationItem should be set in the MenuViewController for this reason. You could flip the MenuViewController and NavigationController relationship, so that the Nav is a child of the Menu. Then you would be able to set the FeedVC navigationItem accordingly.

Hope that helps :)

Also, the framework is Material, not Material Kit. Might be better for search to correct that :)

相关问答

更多
  • 你把CoursePageController放在NavigationController中了吗? 如果是,那么检查它是如何呈现的? 如果它以模态方式呈现,那么您将无法获得navigationController参考。 如果你有navController作为rootViewController,这将工作 if let navController = UIApplication.sharedApplication().keyWindow?.rootViewController as? UINavigationC ...
  • 是的,所有看起来都不错,除非你不需要将rightViewController设置为零。 你可以完全放弃它。 titleLabel的问题在于您的FeedVC是MenuViewController的子项。 MenuViewController是导航的子项,因此导航项应该在MenuViewController中设置。 您可以翻转MenuViewController和NavigationController关系,以便Nav是Menu的子项。 然后,您将能够相应地设置FeedVC navigationItem。 希望 ...
  • NavigationController是UINavigationController的子类。 因此改变rootViewController就像iOS一样。 例如: navigationController?.pushViewController(MySecondViewController(), animated: true) SideNavigationController提供了转换其rootViewController的功能。 这是不同的,因为SideNavigationController使用子U ...
  • 在您的代码中,您首先通过init创建CurrentStocksViewController ,然后使用currentStocksViewController创建UINavigationController 。 因此,在CurrentStocksViewController的init方法中,没有UINavigationController 。 您应该将逻辑移动到viewDidLoad In your code you first create CurrentStocksViewController via i ...
  • UINavigationController是一种特殊情况,您不能像使用普通视图控制器那样只使用转换委托。 相反,您需要符合UINavigationControllerDelegate协议并通过这些方法提供您想要实现的自定义过渡动画。 这里的文件: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UINavigationControllerDelegate_Protocol/ UINavigationControll ...
  • 我知道你已经选择了一个答案,但所有的工作都是在现有视图的顶部推动UITabBar视图,而不是创建一个新的UITabBarController视图。 基于我们的简短对话(最新的XCode,没有StoryBoards,使用XIB),您将要创建一个xib作为UITabBarController,然后将其推入视图... View *view = [[View alloc] initWithNibName:@"myUITabBarXIB" bundle:nil]; view.modalTransitionStyle ...
  • 我很高兴你正在享受材料:) 看看这篇文章应用架构与材料 。 基本上,您可以将PageTabBarController设置为PageTabBarController的rootViewController ,如下所示: import UIKit import Material @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func applica ...
  • 考虑到你基本上是在攻击导航控制器,为了保持行为的一致性,你需要更多地破解它。 弹出导航控制器会将其从内存中释放出来,因此您可能需要另一个包含弹出控制器的阵列或堆栈(从用户角度推送控制器,因为据我所知,无论何时需要推送,推送都会弹出每当你需要弹出)。 在该数组/堆栈中,您将保留需要返回的控制器,在弹出它们之前将它们推入阵列/堆栈。 我假设可变数组存在于您可以随时访问它的某个地方,为了简单起见,将其otherNavigationController : DetailedViewController *DVC = ...
  • 只需添加以下行: UINavigationController* navController = self.navigationController; 然后设置一个断点,或者你想要做的其他事情。 Just add the line: UINavigationController* navController = self.navigationController; And then set a breakpoint, or whatever else you want to do.
  • 在UITabBarController上使用selectedIndex属性。 可以在UITabBarController类参考中找到更多信息。 self.tabBarController.selectedIndex = 1; 或使用 [self.tabBarController setSelectedIndex:1]; 请注意,索引从0开始,因此第二个选项卡位于索引1处。 Use the selectedIndex property on the UITabBarController. More inf ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。