xcode4

Passing NSNumber* to NSString* expected-parameter does not cause compiler warning / error

筅森魡賤 提交于 2019-12-12 10:07:27
问题 Any way to fix this? I changed my a signature of a function to pass NSString object instead of NSNumber object. Except I have some instances that still pass the old NSNumber object. It's hard to track down because the compiler doesn't display ANY errors or warnings for this. I tried deleting the DerivedData folder. Doesn't help. I also tried to do Analyze, that doesn't catch those problems either. I know I can do an NSAssert check to make sure that the incoming parameter type is proper, but

unable to access .nib(XIB) files from a framework in iOS

二次信任 提交于 2019-12-12 09:45:30
问题 i have created a framework out of my existing code base and tried using it in a new code base. This worked fine. But my application is getting crashed when i try to access the nib files which is a part of my framework bundle. This is the code i am using to access the view controllers XIB file. testViewController *controller = [[testViewController alloc] initWithNibName:@"testViewController" bundle:nil]; [self.view addSubview:controller.view]; The app is getting crashed without generating any

What's the difference between “Distribution” and “Release” build configurations?

冷暖自知 提交于 2019-12-12 09:30:11
问题 They both sound like the same thing. Distribution == Release, somehow. Having a hard time figuring out what the difference is. 回答1: In my projects they're the same thing, but it really depends on the programmer and the build settings they want to put into each target. For one programmer, "Release" might be an ADHOC build meant for internal testing while "Distribution" means a Store build. Or maybe a different programmer would do the opposite "Release" is for the Store build and "Distribution"

reloadData in MasterView from DetailView

扶醉桌前 提交于 2019-12-12 09:29:12
问题 I ran into an issue similar to this earlier on the iPhone, but the same solution doesn't seem to apply to the iPad environment. My goal is to call my method forceReload , defined in my RootViewController, that will reload the countdown_table's data in the RootView from the DetailView once a modal is dismissed. forceReload works fine when called directly from the RootViewController, but I can't seem to point to point to the RootViewController from the DetailView. I've tried using

Searching hard coded text in xcode

£可爱£侵袭症+ 提交于 2019-12-12 07:58:20
问题 Hello I would like to localize my application, and the problem I have hard coded text all around the code also in the xib files. I would like quick way to externalize or better to get all hard coded text and put it in external file . if some one have done this before pls share ? 回答1: You can use regular expression to search in all projects. Press CMD + SHIFT + F and open global search. Click on lens (on the left of textfield) and select "options". Select Regular Expression and paste @"[a-zA

iPhone : Unable to find “Two-device specific application” option in Xcode4

狂风中的少年 提交于 2019-12-12 06:13:32
问题 Where do i find this option in Xcode4 ? 回答1: Copy the target. Then Xcode4 asks you if you want to make a iPad version of that target. 来源: https://stackoverflow.com/questions/5882183/iphone-unable-to-find-two-device-specific-application-option-in-xcode4

Uploading An App made by a contractor

為{幸葍}努か 提交于 2019-12-12 05:19:27
问题 I've been asked to help by a friend to upload an App that a 3rd party contractor has made. The contractor has provided the source code and all the relevant files. However, since the 3rd party developer developed the app under their account, I'm having trouble uploading to the App store. From what I can see, the bundleID and the code signing elements are not the one's listed under my friend's account. I'm having difficulty changing either in the project. When I try to compile and run the

Xcode 4 share IPA “The operation couldn’t be completed. No such file or directory”

家住魔仙堡 提交于 2019-12-12 05:12:16
问题 I want to test my app on real device not emulator and I try to create archive from my app and share it to IPA but when i save IPA i get this error "The operation couldn’t be completed. No such file or directory". What's going wrong? Is the reason that i i don't have Identity Profile to set? IS THERE ANY CHANCE TO SHARE IPA if i don't have apple developer certificate? 回答1: For distributing apps to users (not to apple store) you must have Apple Developer Program. You can purchase it from here

How to display Admob on UIWebView Application?

末鹿安然 提交于 2019-12-12 04:59:15
问题 I have previously tried displaying Admobs ads on TabbarView based application. But when I try to implement the same on a UIWebView based application things don't seem to work right. I tried to add the code inside -(void)viewDidLoad but the application crashed. The methods i'm using inside my application include: (void) viewDidAppear:(BOOL)animated (void) viewDidDisappear:(BOOL)animated (void) loading Where should I implement it to view in my application? Any help would be appreciated. 回答1:

Exception on outlet connections in Xcode 4

拟墨画扇 提交于 2019-12-12 04:15:50
问题 I have created a new iPhone project in Xcode 4 and added some files (xib and classes) from an old project which was created in Xcode 3 which works fine. The project compiles fine with no errors or warnings. However, when I try to run it I get the infamous "NSUnknownKeyException reason: class is not key value coding-compliant for the key dateOutlet" error. When I opened the XIB file the connection to the dateOutlet seemed just fine, but I deleted and reconnected anyway just to be safe. Next