xcode5

Decrease iOS Application size to App Store

巧了我就是萌 提交于 2019-11-29 14:48:35
问题 I am trying to submit an application in App Store, and I need to decrease its memory a little bit, if this is possible. I tried a method which I am gonna describe below to make my app lighter, but with not luck. Details I followed these steps to see what was causing this large size Make an archive of the project Distribute it Save for Enterprise or Ad-Hoc Deployment Select the .ipa file and changed the extension to .zip Extract it, and open Payload Show the Package Contents Contents I had

How to get back the UIButton border in iOS 7?

旧街凉风 提交于 2019-11-29 13:56:52
问题 I built an old project in iOS SDK 6.1 in Xcode 5. However, the UIbutton is borderless when the app runs on an iPhone running iOS 7. I have checked the .xib is "Builds for" > "Project Deployment Target (5.0)": How can I config Xcode 5 to build the project to show an iOS 6.1-style UIButton? 回答1: you can create a category: - (void)setRoundedBorder:(float) radius borderWidth:(float)borderWidth color:(UIColor*)color { CALayer * l = [self layer]; [l setMasksToBounds:YES]; [l setCornerRadius:radius]

how and where do I initialize an global NSMutableArray in Xcode 5

倖福魔咒の 提交于 2019-11-29 11:01:50
I am trying to initialize a global NSMutableArray that I can add integers to later. I just need to know how and where I should initialize my array so that it can be accessed and changed by any function that I use later in my program. Also I am using Xcode 5 and know that the array needs to be 180 in length. In your AppDelegate.h file - @property(nonatomic,retain) NSMutableArray *sharedArray; In AppDelegate.m @synthesize sharedArray; In didFinishLaunchingWithOptions - sharedArray = [[NSMutableArray alloc]init]; Now, make create shared object of AppDelegate like- mainDelegate = (AppDelegate *)[

Custom Trigger Scripts for Bot (Xcode 5 CI)

坚强是说给别人听的谎言 提交于 2019-11-29 11:00:52
问题 I am working on setting up CI for my iOS application and I am facing some issues. Where is a good place to find documents on Bot? I have seen the Xcode help but cant find any good example, also watched the CI video from 2013 conference How do i create a custom trigger script, so every time a developer commits their code it will automatically trigger the bot. How do I merge the code to master only if Test successfully passes the bot? Here is where I found info about trigger scripts https:/

iOS Application Doesn't Fill iPhone Screen

a 夏天 提交于 2019-11-29 09:26:24
I am writing an iPhone app using Xamarin . My UIViewController does not fill the entire screen, there is a gap above and below. Here is a screen shot from the simulator. I have changed the colour scheme to make the gaps more obvious The screen design was done in Xcode below is a screen shot of the settings for the UIViewController in Xcode. What am I doing wrong, why is the View too small? Put a 4" launch screen image into your asset catalog or info.plist 来源: https://stackoverflow.com/questions/25929565/ios-application-doesnt-fill-iphone-screen

XCode: Undefined symbols for architecture arm64 error

限于喜欢 提交于 2019-11-29 07:46:21
In my XCode 5 project I use RestKit for REST communication. Everything works fine with the simulators, but generating the ipa file, I get the following error: ld: warning: ignoring file /Users/joseph/Library/Developer/Xcode/DerivedData/XXXXXXXXXX-gdwdekevxtdfivfpsnmyykeqhulk/Build/Products/Debug-iphoneos/libRestKit.a, missing required architecture arm64 in file /Users/joseph/Library/Developer/Xcode/DerivedData/XXXXXXXXXXXXX-gdwdekevxtdfivfpsnmyykeqhulk/Build/Products/Debug-iphoneos/libRestKit.a (2 slices) Undefined symbols for architecture arm64: "_OBJC_CLASS_$_RKRelationshipMapping",

xcode5 add new referencing outlet

折月煮酒 提交于 2019-11-29 07:20:48
Hi I have Just Update my xcode to xcode5, but I have no idea how to add new referencing outlet using xcode 5 by ctrl-drag and drop the label or buttons just like previous what I did in xcode 4.5 Thank you in advance Open your storyboard and click on the editor button (seems like a suit) and select the .h associate to your view : Then, ctrl drag the UI element from the storyboard or xib on your header file or your .m between @interface and @end. XCode will show you a pop-up with some options : And you will obtain the following code : @interface ViewController : UIViewController @property (weak,

How do I change the display name in Xcode 5? [closed]

£可爱£侵袭症+ 提交于 2019-11-29 07:18:51
I clicked on TARGET > INFO then changed BUNDLE DISPLAY NAME to what I want it to be, but when I archive it, the previous name (same as the target name) is still there. Change "Bundle display name" in your PLIST file. Bundle Display Name appears when you install the build on a device. To change the name of your archive, change Bundle Name and Executable File as well. 来源: https://stackoverflow.com/questions/19337639/how-do-i-change-the-display-name-in-xcode-5

How can I Quick Look custom objects with Xcode 5 visual debugger?

限于喜欢 提交于 2019-11-29 06:53:02
Xcode 5 has a great new feature where you can hover over a variable name and get a visual representation of a UIColor, UIImage, or even UIBezierPath. I vaguely remember a comment at WWDC where developers could either conform to some protocol or override some methods on any NSObject subclass in order to participate in this new debugging feature. I would love to add this to a bunch of my model objects to help me debug. Anyone know whether this is a real thing yet, or even if they hinted at it in a future release? Unfortunately, Apple refers to this feature as "Quick Look" and since they have

Could not build module UIKit

一曲冷凌霜 提交于 2019-11-29 05:32:29
Suddenly it stops building application in device. In simulator its working but when I connect the device and try to run it in device it gives me an error: Could not build module UIKit I tries a lot but couldn't solve it. Please don't make the same mistake like I did. In my case, I accidentally typed some words into Foundation framework file. Raphael Oliveira A full clean + deleting the derived data worked for me. Be sure to fix any code that may be broken because UIKit cannot be installed, before the clean and build. So, for example, if you are trying to reference UICollectionViewController,