Questions tagged [objective-c]

This tag should be used only on questions that are about Objective-C features or depend on code in the language. The tags [cocoa] and [cocoa-touch] should be used to ask about Apple's frameworks or classes. Use the related tags [ios], [macos], [apple-watch] and [tvos] for issues specific to those platforms.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

iOS - Error message “no space left on device”

We suddenly experience a problem that somehow seems to be related to iOS 14 as we haven't had those errors in prior versions. At app start, we do quite a lot of network requests to different ...
0
votes
0answers
6 views

IphoneCoredataRecipe not inserting row

I got sample code from apple: https://developer.apple.com/library/archive/samplecode/iPhoneCoreDataRecipes/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008913 But it does not work while adding ...
0
votes
0answers
22 views

Swift code crash on string equals comparison

I have following if condition in my code at line 155 as reported in crash snapshot posted in the end: if userId == UserService.sharedInstance()?.getUserId() userId on LHS is 9665c0d6-d444-4144-83fa-...
0
votes
1answer
16 views

How to get notified before Mac goes to sleep using Cocoa listing?

I'm developing a Java application and I need to use the following code for receiving sleep notification before it sleeps off. The following is the code as suggested by Apple Developer's site for ...
2
votes
0answers
18 views

how to get bitrate of video streaming on iPhone/iPad devices?

I have a iOS app which streams video on iPhone/iPad devices. Now I need to get the bitrate on video streaming on the iPhone/iPad device. ObservedBitrate and IndicatedBitrate does not help on this . I ...
0
votes
0answers
14 views

Self-signed certificate not working after manual install through Profiles in iOS

I have an ios app that connects to an api server for request processing. The server uses self-signed certificate, so currently when trying to send an api request. I get an error saying "The ...
0
votes
0answers
15 views

Why ld treat 'duplicate symbol' issue sometime as warning and sometime as error?

I change some dynamic frameworks to static libs in my project, and the ld post some 'duplicate symbol' errors. When I handled those errors I found there are also some 'duplicate symbol' warnings. I ...
0
votes
1answer
10 views

How do I neatly bind Cocoa inputs to NSDocument properties?

Let's say I have a simple NSDocument subclass: @interface Document : NSDocument @property NSString *someText; @end I want to map someText to some field in my view - so I add a new field to my view ...
0
votes
0answers
16 views

Table view not inserting row

I went through the sample code from the apple: https://developer.apple.com/library/archive/samplecode/iPhoneCoreDataRecipes/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008913 The problem is that, ...
0
votes
1answer
19 views

Placing a banner at the top of the screen within safe area? (rather than bottom)

I am using this code from IronSource to place a banner, however it is showing at the bottom, not the top. What I want to do is get the banner to show at the TOP rather than the bottom , the code below ...
0
votes
1answer
19 views

Moving Project file in Xcode Interface Builder

I have somehow managed to get the Xcode project file for "My System" in a different folder from all the other project files. Everything works but is there an easy way to get the files ...
0
votes
0answers
5 views

Unable to get Album Art from Spotify in Objective C using kMRMediaRemoteNowPlayingInfoArtworkData

I'm tweaking a forked TouchBar application which shows widgets on the Mac TouchBar, and am trying to get album art to display on the NowPlaying Widget. This is the project. Currently, I'm having ...
0
votes
0answers
20 views

UITableView viewForHeaderInSection messed up the header view on iOS 14

I am having a UITableView and it has a custom view as its section header. The UI looks fine on all previous versions except iOS 14. on iOS 14 the HeaderView subviews are all messed up completely and ...
0
votes
0answers
27 views

How to show app share extension name different to app name in iOS?

I have an iOS app with share extension. Everything is working fine. Now I want to show extension name different to my app name. Is it possible? My app name is "Links" and when I share ...
0
votes
0answers
20 views

How to convert c++ std::u32string to NSString?

I am developing a bridge between C++ and swift. And I need to convert C++ std::u32string to NSString. Here the code I tried: u32string str = U"some string"; NSLog(@"%@", [[NSString ...

15 30 50 per page
1
2 3 4 5
19433
久草视频新免费_日韩视频一中文字暮_欧美三级片