腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(5072)
视频
沙龙
1
回答
.
launchimage
UIImage
命令
执
行时
,
UIImage
返回
nil
swift
、
xcode
、
launch-screen
我正在循环遍历我的.
launchimage
图像,以便在不同的上下文中重用我需要的图像,但是当我这样做时,像AppLoginLaunchImage.
launchimage
/
LaunchImage
-Landscape~ipad_1024x768.png.一样,大多数
UIImage
都
返回
nil
但是,名为AppLoginLaunchImage.
launchimage
/
LaunchImage
.png的图像可以正常工作。let allPngI
浏览 10
提问于2020-07-04
得票数 0
1
回答
在应用程序中使用启动图像
ios
、
uiimage
没有运气的试过这些: self.view.backgroundColor = UIColor(patternImage:
UIImage
(named: "
LaunchImage
")!)self.view.backgroundColor = UIColor(patternImage:
UIImage
(named: "
LaunchImage
.png")!)self.view.backgroundColor = UIColor(patternImage:
UIImage
(
浏览 0
提问于2014-12-25
得票数 1
回答已采纳
1
回答
如何以编程方式在iOS9中获得正确的启动映像?
ios
、
launchimage
我在
LaunchImage
资产中添加了不同大小的图像。当我使用这段代码时它
返回
了大小错误的
launchImage
,确切地
返回
@2xPNG
浏览 7
提问于2015-10-14
得票数 1
14
回答
Xcode5和资产目录:如何引用
LaunchImage
?
ios
、
xcode
、
ios7
、
xcode5
、
asset-catalog
我使用的是Xcode5的Asset Catalog,我想使用我的
LaunchImage
作为主视图的背景图像(这是一种非常常见的做法,可以让从“加载”到“加载”的转换看起来很流畅)。但是,调用:
UIImage
*image = [
UIImage
imageNamed:@"
LaunchImage
"]; //returns
nil
浏览 2
提问于2013-10-01
得票数 102
1
回答
应用程序启动后的iOS 8飞溅图像
ios
、
webview
、
ios8
、
splash-screen
preferredMode].size,CGSizeMake(640, 1136));
UIImage
*splash4Inch = [
UIImage
imageNamed:@"Default-568h@2x.png"]; }
浏览 3
提问于2014-10-28
得票数 0
回答已采纳
1
回答
为什么这个ImageView没有发布?
ios
、
ipad
、
memory
、
uiview
ofType:@"png"];
UIImage
*
launchImage
= [[
UIImage
alloc] initWithData:imageData];
浏览 1
提问于2011-04-24
得票数 0
1
回答
使用XCAssets从imageWithContentsOfFile获取启动映像:
ios
、
objective-c
、
xcode
、
uiimage
、
imagenamed
我试图在
LaunchImage
文件中加载.xcassets映像集中的图像,但我不想使用imageNamed:,因为它浪费内存,图像在初始启动时只需要显示几秒钟。这样做是可行的:这不起作用(
返回
null): [
UIImage
imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"
LaunchIma
浏览 1
提问于2015-03-09
得票数 1
回答已采纳
1
回答
如何在iOS中使用图像资产
ios
、
iphone
、
xcasset
我有标准的
LaunchImage
资产,图像文件被称为Default[@2x,...]。使用[
UIImage
imageNamed:@"
LaunchImage
"];总是
返回
零。
浏览 1
提问于2014-12-16
得票数 1
回答已采纳
9
回答
iOS在无闪存的情况下启动时呈现模式视图控制器
ios
、
objective-c
、
startup
、
modalviewcontroller
我想在第一次启动时以模态的方式向用户演示教程向导。现在我正在做这样的事情(为了清晰起见,省略了第一次启动检查): UIStoryboard *storyboard = self.window.
浏览 4
提问于2014-10-14
得票数 36
3
回答
使用NSMutableArray显示图像时出现的问题
ios
、
iphone
、
xcode
、
xcode6
- (NSMutableArray*)restaurantArray; if (_restaurantArray ==
nil
) { @"image3.png",
nil
浏览 0
提问于2014-10-21
得票数 0
20
回答
UIImage
imageNamed
返回
nil
ios
、
xcode
、
uiimage
、
imagenamed
我尝试用来加载一个图像但它只
返回
nil
。
浏览 29
提问于2012-06-12
得票数 53
回答已采纳
1
回答
UIImage
imageNamed
返回
nil
ios
、
objective-c
、
null
、
uiimage
、
xcode6
在iPhone6模拟器上,
UIImage
imageNamed在Xcode6中
返回
nil
。但是在Xcode5上工作得很好
UIImage
*img=[
UIImage
imageNamed@"img@2x~ipad"];
浏览 1
提问于2014-10-08
得票数 0
3
回答
UIImagePNGRepresentation(
UIImage
())
返回
nil
swift
、
uiimage
、
uiimagepngrepresentation
为什么UIImagePNGRepresentation(
UIImage
())
返回
nil
谢谢。
浏览 2
提问于2015-03-04
得票数 10
回答已采纳
2
回答
XCode启动镜像后防止UIWebView白屏闪烁
xcode
、
ios5
、
uiwebview
我是XCode的新手--我正在设计一个只有一个视图的应用程序,它只显示一个加载我的jQuery移动网站的UIWebView。我知道我可以改变背景颜色和不透明度,这样它就会闪现出不同于白色的颜色,但我想完全防止闪光。我希望应用程序启动,显示启动图像,并不显示UIWebView,直到第一页已完全加载。帮助?
浏览 0
提问于2012-07-07
得票数 1
回答已采纳
7
回答
iOS 7发射图像(溅屏)消失
animation
、
splash-screen
、
ios7
、
fadeout
在iOS 7上,当应用程序加载时,启动图像就会褪色,而不是立即消失。编辑答案:
浏览 7
提问于2013-08-22
得票数 40
回答已采纳
6
回答
访问资产目录pathForResource
ios7
、
xcode5
、
nsbundle
看来:对于Images.xcassets资产目录中的资产,不
返回
任何内容。
浏览 0
提问于2013-09-23
得票数 70
回答已采纳
2
回答
如何避免此场景中的Optional.None错误?
ios
、
uiimage
、
swift
{ } else { }dataViewController.dataImage.image =
UIImage
(named: image) as
UIImage
dataViewController.dataImage.image=
UIImage
(named: image) as
UIImage
浏览 4
提问于2014-07-03
得票数 0
回答已采纳
2
回答
Swift中
UIImage
的
返回
类型
objective-c
、
swift
、
uiimage
我有一个函数,如果满足条件,它会
返回
图像,否则它会
返回
零。 if (doc.userProperties !=
nil
) { return image;我尝试过这样做,但它在
返回
零时会显示错误,同时也会以展开零的形式显示错误。 func ge
浏览 1
提问于2016-02-29
得票数 0
回答已采纳
2
回答
initWithContentsOfFile:path]
返回
nil
时的内存管理
iphone
、
uiimage
、
release
、
alloc
[[
UIImage
alloc] initWithContentsOfFile:path]
UIImage
* image = [[
UIImage
alloc] initWithContentsOfFile:path];{} //Here image is
nil
a
浏览 0
提问于2011-07-05
得票数 3
2
回答
与UIActivityViewController共享多个图像
ios
、
objective-c
、
uiactivityviewcontroller
我正在尝试与UIActivityViewController共享多个图像,但到目前为止,我发现的示例一次只共享一个图像。有什么建议吗?
浏览 0
提问于2013-07-09
得票数 7
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
iOS 不规则图形切图
iOS小技巧总结,绝对有你想要的
iOS开发:NSUserDefaults使用全解
混合栈开发,AliFlutter如何解决图片问题
关于SwiftUI,看这一篇就够了
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券