Skip to main content

All Questions

Tagged with
0 votes
1 answer
60 views

Unconditional NSAssert in Objective-C?

Sometimes I like to put NSAssert(NO, @"this should never happen") in a block of code that should never be reached. Is there a better alternative for such unconditional asserts in Objective-C?...
simd's user avatar
  • 2,019
0 votes
2 answers
55 views

Why does swift say that when I don't import the cocoa framework, there are no member functions of the String?

If you run the following function in vs code, you will get a compilation error that the addingPercentEncoding function does not exist, but if you import the cocoa framework, it will run normally. What'...
nansjlee's user avatar
  • 419
2 votes
1 answer
635 views

How do I convert an array `UnsafePointer<DSPComplex>` to an array of Floats?

How do I convert an array UnsafePointer<DSPComplex> to an array of Floats in Swift? I have seen this page, but because I am new to swift I don't have a clue on how to do it for an array of ...
Duck's user avatar
  • 35.9k
0 votes
0 answers
515 views

How to detect fullscreen mode of AVPlayerViewController in Objective C [duplicate]

How to check whether video is play full screen mode or not in AVPlayerViewController. Thank you in advance.
Wasim Makwana's user avatar
0 votes
2 answers
518 views

UITextField losing focus after button press and text field switch (keyboard remains visible)

I've got a UITableViewCell subclass here that manages a UITextField setup on the right side of the table view cell. Anywhere from 4 to 8 of these cells are displayed at any given time depending on the ...
CMPXCHG8B's user avatar
  • 497
0 votes
0 answers
67 views

Get list of installed applications on connected iPhone

I have a mac application that needs to get the list of installed applications on the connected iPhone. How can it be done? Or can it be done at all? Private api is also fine
Jeff's user avatar
  • 1,403
0 votes
1 answer
1k views

PostScript Name of a font file ( .ttf ) using Objective - C and not all installed fonts

I want to find out the PostScript Name of a .ttf file which I have copied to Documents Directory ... So that I can set the font to a label programmatically without changing the .plist file. I know ...
Omkar Jadhav's user avatar
0 votes
2 answers
185 views

iOS - Location of a TextField created programmatically

I have a doubt: it is wrong to create a TextField from the code and not from interface builder? For example, I am using 'AwsomeTextField' taken by CocoaPods. In the pages of explanation says: let ...
Ōmega's user avatar
  • 39
2 votes
5 answers
406 views

How we can increase width of two button when we remove third button from view

I have view with three button with equal size. Each button take 1/3 part portion of view. Like this image: If I remove/hide one button then two button width should increase equally and take 1/2 ...
Manjeet Singh's user avatar
0 votes
2 answers
80 views

How to add Date if today is last day of the month.?

I am stuck a problem where i need to create a stepper by 7 day. I code for that but in case of last days of month it will remain continue with same month rather than it should be change in next month ...
Anupam Gupta's user avatar
0 votes
2 answers
261 views

Why does setting tab bar controller's selectedViewController >= 4 throw error when there are more than 5 view controllers?

I have a UITabBarController that I navigate programmatically. Calling the following method: // UITabBarController subclass - (void)tabForward { NSUInteger selectedIndex = [self.viewControllers ...
pitachip's user avatar
  • 965
3 votes
0 answers
822 views

Edit EXIF metadata in RAW photos in iOS

I need to edit EXIF data into a RAW (CR2/NEF) file with iOS. Unfortunately, the only way to manage It with Cocoa Framework is UIImageJPEGRepresentation(image, 1);, but this method compress my RAW from ...
Alessio Crestani's user avatar
0 votes
2 answers
99 views

How to set time delay for displaying the alertview from one after another From an array?

How to set time delay for displaying the alertview from one after another From an array? I have 5 alertview in an array.. Each alertview will Display after Some time duration. for (NSDictionary *...
Purushothaman's user avatar
0 votes
1 answer
40 views

Is it possible to make silent phone calling on iPhone by using application

I am working on such kind of application where i have to call a mobile no. or land line no. by application. i just want to know that apple allowed to make the silent calling is initiated by the ...
Vinod Ojha's user avatar
-1 votes
1 answer
45 views

Is there solution for navigation for ViewController By programmatically In Objective-C (Cocoa) using Xcode 7.0

I am trying to navigate one view controller to another view controller by using storyboard sheet segues, but it doesn't worked I took View1 and view 2 while navigating view1 to view2 it works well ...
user5789296's user avatar

15 30 50 per page
1
2 3 4 5
175