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
1answer
14 views

How to integrate C++ code into macOS obj-c project?

We have two projects, each in its own git repository: a macOS application written in Objective-C. a multi-platform library-like code written in C++ which we plan to use by/include in several ...
-1
votes
0answers
13 views

how to get the real screen size?

I have any uiview on ipad and it doesn't show correctly for other devices (for example iphone). My UIView: UIWindow *mainWindow; ... self = [super initWithFrame:CGRectMake(0,0, 500, 800)]; ...
0
votes
0answers
13 views

How to find duplicate record in txt file in objective-c? [closed]

I have to write and read a data using Struct in txt file and I did not know how to print duplicate records in output field. Can someone please help me out to find duplicate records in txt file?
0
votes
0answers
14 views

Why does setting a property crash when self is nil?

My app has been crashing on this line of code in some rare situations self.dataBuffer = nil; That property is declared as @property (strong, nonatomic) NSMutableData* dataBuffer; To me the line ...
-1
votes
0answers
10 views

How to use NSCollectionLayoutItem in ios objective c? [closed]

How to use NSCollectionLayoutItem for compositional view in ios objective c?
0
votes
0answers
19 views

How to create/export custom true type face(.ttf/font) programmatically? - ios

I want similar functionality as iFontMaker in my application. User can draw any selected character, modify it and export it. Can anyone guide me how it will work? I am doing research but not able to ...
0
votes
0answers
12 views

NSInvalidArgumentException', reason: 'no section at index 1' when working with different sections

I'm creating a project where I fetch data from CoreData to represent the data into some cells. Also I have a header in section 0 with 3 cells then the section for the fetche results + 1 cell as button ...
3
votes
0answers
23 views

How to customise UICollectionView Cell to show image grid as shown in attachment?

I want to show images as shown in the attachment. How can I do this using storyboard and objective c?
0
votes
1answer
19 views

How to stop to open keyboard when click on time picker of inline style date picker in iOS 14?

I have implement inline style date picker in iOS 14. I want to disable to open keyboard when focus on time picker. inline style date picker: Please help me as soon as possible.
1
vote
0answers
18 views

How to set time picker at top of inline style Date picker in iOS 14?

I have set inline style date for iOS 14. In this date picker timer picker is display at bottom. I want to display that time picker at top of inline style date picker like display in iOS default ...
0
votes
0answers
26 views

I'm not able to resume download task in NSURLSession

I have create a demo for downloading a file from the server it is working fine with foreground and background, but when I'm going to resume it, It will giving below Error I have stcuk here could help ...
0
votes
1answer
23 views

Objective-C Send arguments from terminal when cocoa app is already launching

I'm trying to pass some arguments to an UI-based program (cocoa app) through terminal commands while the app is already in launch. For example: open appName.app -openUI // ...
0
votes
0answers
25 views

'ProductModuleName-Swift.h' file not found for Subprojects

I am having the project(P1) and a sub-project(P2). P2 contains a Swift file (F2.swift) and P1 contains an Objective C file (F1.h and F1.m). I was trying to access F2 in F1. How can i do that? I tried ...
0
votes
0answers
17 views

Apply dynamic data smoothing to a CorePlot graph

I have a scrollable/zoomable CorePlot based line graph with 2 y-axis plots. Sometimes one of the plots can be very noisy and make it hard to see the other plot. There is a very large amount of data (...
0
votes
0answers
7 views

How to toggle graph visibility with CPTLegend as button

I would like to allow toggling on/off individual plots on my CorePlot based graph. The most reasonable way to do this I think would be to allow each Legend item to act as a button. I am not sure how ...

15 30 50 per page
1
2 3 4 5
19391