草庐IT

display-field

全部标签

iphone - UITableViewCell : how to give the built-in imageView a margin on retina display

我想在普通旧UITableViewCell(分组样式)左侧的UIImageView上应用边距。我找到的唯一方法(通过here)是在将UIImage附加到UIImageView之前调整UIImage本身的大小。如果图像小于单元格,它将居中;留下所需的余量作为副作用。好吧,这行得通,但现在我的图像很模糊,因为100unit行高在iPhone4上不是100像素,而是200。所以我最终得到缩放到90x90像素的UIImage,生成90x90单位(180x180像素)的UIImageView图像。输入丑陋的模糊。所以我的问题是:如何在不对图像进行过度下采样的情况下在imageView周围实现边距

iphone - 警告 : Parse Issue: Use of GNU old-style field designator extension

我尝试了以下代码:CLLocationCoordinate2Dcoord={latitude:61.2180556,longitude:-149.9002778};并且编译器显示以下警告warning:ParseIssue:UseofGNUold-stylefielddesignatorextension有人可以帮我理解编译器想表达的意思吗? 最佳答案 CLLocationCoordinate2Dcoord={.latitude=61.2180556,.longitude=-149.9002778};

android - Kotlin 错误 : Dagger does not support injection into private fields

我在kotlinActivityViewPager中使用,我希望在KotlinFragment中使用Dagger注入(inject)。我有错误:Dagger不支持注入(inject)私有(private)字段。在JavaFragment中,Dagger注入(inject)工作。为什么我不能在kotlinfaragment中注入(inject)dagger?在我的kotlinActivity中mPagerAdapter=object:FragmentPagerAdapter(supportFragmentManager){privatevalmFragments=arrayOf(Kotl

android - Kotlin 错误 : Dagger does not support injection into private fields

我在kotlinActivityViewPager中使用,我希望在KotlinFragment中使用Dagger注入(inject)。我有错误:Dagger不支持注入(inject)私有(private)字段。在JavaFragment中,Dagger注入(inject)工作。为什么我不能在kotlinfaragment中注入(inject)dagger?在我的kotlinActivity中mPagerAdapter=object:FragmentPagerAdapter(supportFragmentManager){privatevalmFragments=arrayOf(Kotl

ios - Storyboard中的 UIImagePickerController : UIImagePickerControllerSourceTypePhotoLibrary displays black screen

我有一个Storyboard,我在其中创建了一个UINavigationController实例并将其自定义类设置为UIImagePickerController。如果我在prepareForSegue中设置imagePicker.sourceType=UIImagePickerControllerSourceTypeCamera,一切正常。如果我在prepareForSegue中设置imagePicker.sourceType=UIImagePickerControllerSourceTypePhotoLibrary,我会得到一个几乎全黑的屏幕,上面有一个我无法忽略的空灰色条:[屏幕

ios - 知道 "Display Zoom"是否开启

这个问题在这里已经有了答案:HowcanIdetectwhetherauserhasaniPhone6Plusinstandardorzoomedmode?(6个答案)关闭7年前。有没有办法知道用户是否在使用iPhone6/iPhone6Plus的“显示缩放”功能?我说的是thisfeature.

ios - 更新 : Image is captured but will not display

这个问题在这里已经有了答案:iOS8Snapshottingaviewthathasnotbeenrenderedresultsinanemptysnapshot(20个答案)关闭6年前。我有一些代码可以在我的一个应用程序上运行;所以我复制了代码,进行了必要的更改(即textField名称等)并且它有效,除非我将它移动到UIImageView;没有出现。这是我的代码:viewController.h(为简洁起见仅显示相关部分)#import"AppDelegate.h"#import"Books.h"#import#import"MBProgressHUD.h"#import#impo

ios - 理解 iBeacon 数据 : the power field and other bytes

我是蓝牙系统的新手,我正在尝试了解用于新Apple技术的数据:iBeacon。已经有一些很好的答案解释了它是如何工作的,我一直在阅读我能找到的所有内容(尤其是蓝牙规范)。尽管如此,我还是遗漏了一些要点,我将首先举个例子:(我正在使用SetAdvertisingDataCommand,它在这里遗漏了OGF之前的hcitoolcmd)0x080x00081E02011A1AFF4C000215E2C56DB5DFFB48D2B060D0F5A71096E000000000C500我会在这里列出我不明白的或找到的信息。有没有关于OGF的任何信息(这里是0x08)?我知道它代表OpCodeGr

ios - 在 Xcode 5.1 中构建时出现 "You must provide a screenshot for 5.5-inch Retina display, because your app binary supports 5.5-inch Retina displays"

我更新了一个旧应用程序,修复了一个小错误。该应用程序是使用Xcode5.1编译的。(无法使用Assets目录或添加iPhone6和6Plus图像。)但是,当我尝试提交它进行审核时,我仍然收到此错误:Youmustprovideascreenshotfor4.7-inchRetinadisplay,becauseyourappbinarysupports4.7-inchRetinadisplays.Youmustprovideascreenshotfor5.5-inchRetinadisplay,becauseyourappbinarysupports5.5-inchRetinadisp

ios磁力计: force display of calibration view

作为机械罗盘的用户,我注意到磁力计提供的航向经常偏离45度或更多,尽管在这种情况下没有出现校准显示。如果我在户外测试或使用我的应用程序,我会在罗盘View出现时校准磁力计。这行得通,看来这是必须的。我不想向我的应用程序的用户显示一个不准确的航向,当可以通过使用数字8运动执行频繁校准来获得或多或少准确的航向时。有人知道每次出现我的罗盘View时强制显示磁力计校准View的解决方案吗?我在这里搜索了所有(?)帖子,只有一个人有类似的想法,但没有答案。 最佳答案 恐怕没有办法做到这一点-虽然API允许您关闭校准View(使用dismiss