Questions tagged [bridging-header]

Special header that facilitates cross-language developments between Swift, Objective-C, Objective C++, C and C++ on MacOS and iOS. Use exclusively cross-language development.

The bridging header is a special header in MacOS and iOS projects that aims at facilitating multi-language development by sharing definitions that are common between Swift and Objective C code.

In view of the (limited) interoperability between Objective-C and other programming languages, the bridging header also facilitates Objective-C++, C and C++ interoperability.

External references:

350 questions
-1
votes
1 answer

Swift bridging header fail issue

I have an iOS project using swift language which is running normal. Because I worry about the project may miss or other, I copied the project from this address to another address. when I open this project and run this project. I got those two error…
showxjn
  • 1
  • 2
-1
votes
2 answers

Bridging-Header.h file and error "use undeclared types..."

i install Podfile in my app, and run it from my file .xcworkspace. My project is a Swift project but the pod installed are in ObjectC. I create myApp-Bridging-Header.h and add in it: #import "SignalR.h" #import "RockSocket.h" ... then open…
pampua84
  • 696
  • 10
  • 33
-2
votes
1 answer

calling Objective C and C from Swift passing callback function

I am trying to call the HappyTime onvif library from Swift. I have the library linked in to my project and I am able to call some simple functions, but I am having trouble getting the syntax right in my call which passes my callback function. Here…
user3561494
  • 2,164
  • 1
  • 20
  • 33
-3
votes
1 answer

Slider Popover in Swift

I'm trying to create a popover for a slider in Swift. Basically I have a UISlider that is between 0 and 255. What I want is to be able to do is have the slider show a popover when the user holds the bar, and it to display 0-100%. Researching, I…
beninabox_uk
  • 684
  • 2
  • 11
  • 27
1 2 3
23
24