我在我的xcode 5中安装了不同的配置文件,在删除它之前,你在mac上安装了所有配置文件的会话,但是现在这个会话消失了,我现在怎样才能访问这个会话?
我正在设置UIViewControllervia Interface Builder/Storyboard的title字段:

这个视图控制器嵌套在一个UINavigationController嵌套在一个中UITabBarController.当我运行应用程序时,我的导航项目没有标题,标签栏项目也没有.
如果我在界面构建器中显式设置视图控制器的导航项的标题,以及它的标签栏项目的标题,那么它可以正常工作.
我想知道:
a)如果我不使用Storyboard而只使用常规xib,则设置视图控制器的标题会隐式设置导航项的标题以及标签栏项的标题.但它不是故事板.这是预期的行为吗?
b)视图控制器标题的目的是什么(在故事板中)?它似乎没有效果.
谢谢!
我遇到了问题UICollectionView.最初它显示正常,显示一个单元格网格,每个单元格都有一个单元格UIImageView.这些UIImageViews显示的PNG具有透明度,存储在应用程序包中.
我的问题是,一旦UICollectionView滚动,一些单元格似乎已损坏.
损坏的单元格显示多个图像堆叠在一起,最顶层的图像是它应该显示的图像,下面的图像是应该在其他单元格中使用的图像.
我最好的猜测是,这与a UICollectionView中的细胞重用方式有关,但我愿意接受建议.
这是我用于在以下内容中创建单元格的委托代码UICollectionView:
// creates the individual cells to go in the menu view
- (UICollectionViewCell*) collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
// create collection view cell
UICollectionViewCell * cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath];
// create a uiview where we can place all views that need to go into this cell
UIView * contents=[[UIView alloc] initWithFrame:cell.contentView.bounds];
[contents setBackgroundColor:[UIColor clearColor]];
[cell.contentView addSubview:contents];
// add a button image
NSString * buttonPath=[[NSBundle …Run Code Online (Sandbox Code Playgroud) 我添加了新框架(第三方)和构建.
不幸的是,因为执行不是.
我该如何解决这个问题?整整四个晚上都花了.:(
Ld /Users/hansehee/Library/Developer/Xcode/DerivedData/iBaseballManager-dbrtdyfdzzunktexlyibuzjbftoy/Build/Products/Distribution-iphoneos/iBaseballManager.app/iBaseballManager normal armv7s
cd /DevLibs/BaseballManager_KOR/iBaseballManager
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/hansehee/Library/Developer/Xcode/DerivedData/iBaseballManager-dbrtdyfdzzunktexlyibuzjbftoy/Build/Products/Distribution-iphoneos -L/DevLibs/BaseballManager_KOR/iBaseballManager/Classes/BaseballManager/kakaoUtil/kakao-ios-sdk -F/Users/hansehee/Library/Developer/Xcode/DerivedData/iBaseballManager-dbrtdyfdzzunktexlyibuzjbftoy/Build/Products/Distribution-iphoneos -filelist /Users/hansehee/Library/Developer/Xcode/DerivedData/iBaseballManager-dbrtdyfdzzunktexlyibuzjbftoy/Build/Intermediates/iBaseballManager.build/Distribution-iphoneos/iBaseballManager_Device.build/Objects-normal/armv7s/iBaseballManager.LinkFileList -dead_strip -fobjc-link-runtime -miphoneos-version-min=6.0 -framework StoreKit -framework SystemConfiguration -framework CoreData -weak_framework AdSupport -framework MediaPlayer -framework CoreTelephony -framework Security -lzlib -lstdc++ -lCxImage -lj2k -ljasper -lkakao-ios-sdk-i386-armv7-armv7s -ljbig -ljpeg -lpng -ltiff -framework AudioToolbox -framework AVFoundation -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenAL -framework OpenGLES -framework QuartzCore -liClet -Xlinker -dependency_info -Xlinker /Users/hansehee/Library/Developer/Xcode/DerivedData/iBaseballManager-dbrtdyfdzzunktexlyibuzjbftoy/Build/Intermediates/iBaseballManager.build/Distribution-iphoneos/iBaseballManager_Device.build/Objects-normal/armv7s/iBaseballManager_dependency_info.dat -o /Users/hansehee/Library/Developer/Xcode/DerivedData/iBaseballManager-dbrtdyfdzzunktexlyibuzjbftoy/Build/Products/Distribution-iphoneos/iBaseballManager.app/iBaseballManager
Run Code Online (Sandbox Code Playgroud)
ld:找不到-lzlib clang的库:错误:链接器命令失败,退出代码为1(使用-v查看调用)
我有一个联系人列表的uitableview.我希望将每个联系人的图像放在圆圈框架中,就像在小牛队的登录屏幕中一样.有关如何在uitableviewCell中执行此操作的任何建议?

我想检查天气NSString是否为空.我从JSON数组分配.分配后该字符串值为<null>.现在我想检查这个字符串是否为null.所以我这样说
if (myStringAuthID==nil)但是这个if语句总是假的.我如何检查字符串为null.请帮我
谢谢
我正在为2个mounth之前的Xcode 4.6项目工作,现在我想发送给苹果我的应用程序一切正常但是当我试图在iOS 7上运行应用程序时,我看到了一些错误; 所以我已经下载了新的Xcode 5以查看错误在哪里,但是当我尝试用IB Xcode崩溃打开故事板时发生了什么.我试着在互联网上看到如何解决这个问题,但我没有发现任何相关信息.
此外,错误Xcode中给我,当我尝试运行的应用设备与iOS的7是:
CompileStoryboard YatchCo/en.lproj/MainStoryboard.storyboard
cd "/Volumes/Dati Lavoro/Mirko/Koffeecup/Y.CO"
setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --minimum-deployment-target 6.0 --output-format human-readable-text --compile /Users/iCreil/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/YachtCo.app/en.lproj/MainStoryboard.storyboardc /Volumes/Dati\ Lavoro/Mirko/Koffeecup/Y.CO/YatchCo/en.lproj/MainStoryboard.storyboard
2013-09-22 19:31:37.326 ibtoold[30327:707] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-4510/Framework/Document/Archiving/IBDocumentUnarchiver.m:216
Details: Failed to unarchive an instance of NSFont
Object: <IBDocumentUnarchiver: 0x7ffab98295e0>
Method: -unarchiveObjectFromElement:
Thread: <NSThread: 0x7ffab84191d0>{name = (null), num = 1}
Hints: None …Run Code Online (Sandbox Code Playgroud) 有没有办法为UIButton背景图像添加某种偏移?
我有一些自定义背景图片UIButton.这些图像在有效按钮区域周围有5像素阴影区域.当我使用这些图像时,我必须移动标题标签,调整框架并进行一些计算以正确放置按钮.
理想情况下,我想在该图像(或者)上设置类似偏移(x = -5px,y = -5px)的东西,UIButton这样当我将图像作为背景分配给UIButton时,它会被水平移动该偏移量.垂直.
在html中,我会在按钮div上设置固定大小,然后通过指定background-position来偏移背景图像.
iOS有类似的东西吗?
只是一个简单的问题.我正在为iOS 7更新我公司的应用程序而且我遇到了几个问题.现在,最重要的是UIBarButtonItem.当我针对iOS 7编译我的应用程序然后运行应用程序时,我得到旧的条形按钮.
简而言之,我的栏按钮看起来像这样:

而不仅仅是文本.应用程序本身最初是在iOS 5上编码的,所以我们在过去几年里一直在更新它.顺便说一句,这是我添加按钮的方式:
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonSystemItemDone target:nil action:nil];
Run Code Online (Sandbox Code Playgroud)
任何建议或线索将非常感谢.
谢谢!
我必须通过Ad-Hoc Distribution制作一个ipa,但是当我必须选择配置配置文件时,我有两个相同的配置,所以如何删除一个?我检查了我的证书,我在开发者苹果面板中只有一个.我已多次安装此配置文件,因为我已经有了新设备(我已经添加了超过2次的配置)有人可以帮助我吗?
这是图片:

ios ×10
objective-c ×7
xcode ×4
xcode5 ×3
uiimage ×2
c++ ×1
cocoa-touch ×1
crash ×1
iphone ×1
nsstring ×1
offset ×1
storyboard ×1
uibutton ×1
uiimageview ×1
uikit ×1