Category "objective-c"

Receiver '**' for class message is a forward declaration Error. Swift Static Library use in Objective-C

I am trying to make a Swift Static library and apply it to Swift and Objective Project. import Foundation @objc open class Library001_Test: NSObject { publi

How to implement CA pinning in iOS to prevent man in the middle attack?

I have read several topics, blogs about SSL pinning in iOS and have implemented the following strategy to do SSL pinning way back in one of the app Current SSL

How to pass out parameter to function from Swift FFI?

Let's say I have a function defined in Rust, which looks like this: #[no_mangle] pub unsafe extern "C" fn do_something( my_value: *mut MyStruct, some_pa

MacOS: reading shared preferences in Swift and ObjectiveC

I have a project that mixes Swift and objective c. The controller for my preference panes is written in Swift. I can’t seem to read those preferences in O

Prevent NSTimer from firing when in sleep / PowerNap

How can I prevent a (slightly non-standard) NSTimer from firing on macOS, when the MacBook's lid is closed and the machines is supposed to be at sleep? Or more

/usr/include/GNUstepBase/GSVersionMacros.h:359:16: fatal error: 'objc/blocks_runtime.h' file not found

I am trying to build a objective-c library integrated to a swift project on linux. I have this Package.swift for my main project: // swift-tools-version:5.5 //

Broken project in XCODE objective c

Hi, Does someone have a clue what is the reason for this broken project in xcode 13.3.1 The tab with the project settings, properties is empty!!! Check the scr

ZXingObjC error in React Native, stringByReplacingPercentEscapesUsingEncoding: is deprecated

The build fails because of this error CompileC /var/root/Library/Developer/Xcode/DerivedData/printapp3-bdgcuaoitzijpkgdxzcqqilqaxei/Build/Intermediates.noindex

How to link a objective-c library into a c/c++ project

I have this code: for the objective-c library GNUmakefile include $(GNUSTEP_MAKEFILES)/common.make LIBRARY_NAME = libteste libteste_OBJC_FILES = ./src/teste.m

ios 15.2 Objective-C Mutiple UITableViews on single screen crashing when scrolling

I have two UITableViews on my view with two buttons acting as tabs on top of the view. I hide and show one of the tableview based on user selection. When I come

Library not found for -lDJIWidget

I am attempting to run the sample developer dji application for the iOS platform via Xcode version 13.2.1. Upon building the application for the ObjectiveC and

Avplayer item pre buffering while scrolling on UITableView

I have created an UITableView with custom UITableViewCells. UITableView consists of images and videos that load via internet. While user is scrolling in one of

What is the endian order of the host machine/device?

Actually the initial question was: "What exactly the kCGBitmapByteOrderDefault is?" Because sometimes CGImageGetByteOrderInfo(CGImageRef image) returns kCGBitma

Inserting objective-c sample code sections into a working xCode objective-c IOS project

I am trying to implement an answer to an old question. Here is that answer https://stackoverflow.com/a/26725721/1984167 And here are the code sections suggested

The custom view added in the WKWebview is not listed during UITesting

I have a UITableview with the below view hierarchy. UIViewController |--UITableView |--WKWebview |--ScrollView |--UIView The UIView i

Creating a PDF from WKWebView in macOS 11.+

As WKWebView contents can finally be printed out in macOS 11+, I'm trying to replace old WebView dependencies. However, with the HTML correctly loaded in WKWebV

NSJSONSerialization to plain old object?

A lot of modern programming languages have JSON libraries that support encoding and decoding json to/from "plain old objects" - i.e. instances of classes that p

Keyboard does not change appearance in iOS dark mode

I am testing Dark Mode in iPhone 12 Pro (iOS 14.4). I enabled Dark Mode in Settings but my Keyboard remains the same. It does not appear in DarkMode. I have 2 q

How do I automatically switch to the iOS custom keyboard when entering my app?

I would like when entering my app to automatically switch to my custom keyboard like the Facemoji app. Is this possible to force user to open only custom keyboa

Need advice on building a diagonal keyboard for Iphone App

I want to make an IPhone App, but sort of a strange one. I want to make an app where the keyboard is on the bottom left corner of the screen. I don't have any e