天道酬勤,学无止境

xcode

Hide UITableView when searchResultsTableView displayed

I have a UITableView with a searchDisplayController implemented. I have tableView.backgroundColor = [UIColor clearColor]; and self.searchDisplayController.searchResultsTableview.backgroundColor = [UIColor clearColor]; When I enter text in the search field, the search results are displaying fine, but as the background of the resultant table is transparent, I am seeing my tableview and on the tableview the search result table is displayed. I want to hide the tableView when the searchField began editing. I have tried -(BOOL)searchDisplayController:(UISearchDisplayController *)controller

2021-07-13 17:02:40    分类:问答    iphone   ios   objective-c   xcode   xcode4.2

ld: -bundle and -bitcode_bundle cannot be used together

i'm building llvm/clang 3.7 with bitcode support (-fembed-bitcode). Some modules can't be linked due to error: ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together clang: error: linker command failed with exit code 1 (use -v to see invocation) Full error output: Linking CXX shared module ../../lib/BugpointPasses.dylib cd /Volumes/Transcend/dev/src/llvm_37_ios_any_build/tools/bugpoint-passes && /usr/local/Cellar/cmake/2.8.12.2/bin/cmake -E cmake_link_script CMakeFiles/BugpointPasses.dir/link.txt --verbose=1 /usr/bin/c++ -fembed-bitcode -Os -std=c++11

2021-07-13 16:42:01    分类:问答    ios   xcode   clang   xcode7   bitcode

Interface Builder XIB compiler error on Xcode 8

After switching to Xcode 9 then back to Xcode 8, my build is failing and I'm getting this error. I'm not getting any error on Xcode 9 though. Note: I've already checked :Solution and Solution, however it's not working. Why am I getting this error? BasketTotalView.xib: Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/dg/_yf1yfd15svdj48mrrlws5vw0000gp/T/IB-agent-diagnostics_2017-08-18_10-08-35_271000".

2021-07-13 16:10:58    分类:问答    ios   objective-c   xcode   xcode8   xcode9

Is there any advantage on separating iPhone and iPad classes on a Universal app?

I have a Universal (for both iPhone and iPad) application. Are there any advantages on separating the iPad from the iPhone classes in the folder structure? Here is an example of what I mean: - MyApp - Resources - Classes - iPad - SomeUniqueClassOnIPad.h - SomeUniqueClassOnIPad.m - iPhone - SomeUniqueClassOnIPhone.h - SomeUniqueClassOnIPhone.m - SomeUniversalClass.h - SomeUniversalClass.m Is that common in objective-c projects?

2021-07-13 16:06:16    分类:问答    objective-c   ios   xcode   coding-style   dry

Fastlane Appfile in GIT? How to retrieve current apple_id?

I setup Fastlane for the build automation for my XCode project. At least the Fastfile (containing the build options) should be in GIT, but I would also be happy to have the Appfile (Team Identifiers) also in GIT. The main issue: The Appfile should contain the apple id of me. Sample: apple_id "myid@gmail.com" # Your Apple email address # Default team ID team_id "AUE7D4LRRX" for_platform :ios do for_lane :production do team_id '-' #reset team id end end Is it somehow possible to dynamically retrieve the apple id from the apple/xcode preferences? In this current solution I would not be able to

2021-07-13 15:39:01    分类:问答    ios   xcode   git   crashlytics   fastlane

UILabel with custom font wrongly rendered

In my iPhone app I set a custom font for all UILabels (to be more precise, I subclassed UILabel, overriding a method, setting the custom font in that method and then set all labels in IB to that custom class). The problem now is, that all texts are rendered too far below the expected baseline, so letters like 'y' and 'g' are cut off below. I've read about similar problems here: UIButton custom font vertical alignment Custom installed font not displayed correctly in UILabel I then tried fiddling around with the ascender as described in those solutions (it was set to 990 initially). Setting it

2021-07-13 14:54:24    分类:问答    iphone   ios   xcode   interface-builder   custom-font

npm install -g ios-deploy didn't work , it displays error

I am trying to install APPIUM on my machine and want to run it in actual device, for that i have to install the command 'npm install -g ios-deploy' but when i am trying to install it is dispalying the error. Error: he following build commands failed: PhaseScriptExecution Run\ Script build/ios-deploy.build/Release/ios-deploy.build/Script-C0CD3D981F59D20100F954DB.sh (1 failure) npm ERR! code ELIFECYCLE npm ERR! errno 65 npm ERR! ios-deploy@1.9.2 preinstall: ./src/scripts/check_reqs.js && xcodebuild npm ERR! Exit status 65 npm ERR! npm ERR! Failed at the ios-deploy@1.9.2 preinstall script. npm

2021-07-13 14:42:35    分类:问答    ios   xcode   npm   homebrew   appium-ios

Xcode 4 - Error Starting Executable

I've been working on a project in Xcode 3.2.5 and today I tried migrating it up to Xcode 4.0. It compiles just fine; I can navigate to and execute the .app without a hitch (as expected). The only thing that is screwy is the fact that Xcode cannot launch the application, and displays the following error when it tries: "Error starting executable. No executable file specified. Use the "file" or "exec-file" command" (image not available) I've scoured the Project and Xcode settings and have been googling for half the day, but all I can find are dead ends and people bashing other people about

2021-07-13 14:24:48    分类:问答    xcode   macos   xcode4

Has anyone here integrated Team Explorer Everywhere with Xcode?

I'm starting Macintosh development and I'm in a Microsoft shop where we're using Team Foundation Server. I've learned that there's no explicit/official TFS client for any non-Windows platform, and that the best option is to use Team Explorer Everywhere, formerly Teamprise (Microsoft bought them and rebranded it) and either the command-line client or the Eclipse plugin. There's no Xcode plugin because, as revealed in this question, Apple doesn't give out enough info to be able to integrate into Xcode. That answer was given by someone who appears to be part of Teamprise (the question was asked

2021-07-13 14:21:19    分类:问答    xcode   tfs   team-explorer

Xcode: Error Domain=DVTPlaygroundCommunicationErrorDomain Code=1

I'm attempting to test the cancellation of a DispatchWork item within a Swift Playground, although during the first few milliseconds of execution there's an error, which I'm not sure what it's actually indicating, nor can I tell if the error is causing the cancellation rather than the cancel() method... func testDispatchWorkItems() { let queue = DispatchQueue.global(qos: .userInitiated) var item: DispatchWorkItem? // create work item item = DispatchWorkItem { for i in 0 ... 100000 { if item!.isCancelled { break } print(i) } } // start it queue.async(execute: item!) // after three seconds, stop

2021-07-13 13:53:19    分类:问答    ios   swift   xcode   macos