Data dodania Pytanie
2017-11-28 10:11 Reference class definition from prefix header in swift »
I'm adding swift code to an existing Objective-C project. I'm having problems referencing a definition from the existing prefix header. I have a clas...
(1) odpowiedzi
2017-11-27 20:11 Unity Controlling StatusBar on iPhone X »
I have a game, in which all earlier versions of iPhone (3 - 8) is build without the Statusbar, but now with the iPhone X, after altering my UI to fit ...
(0) odpowiedzi
2017-11-27 18:11 UI freezes on executing NSBatchDeleteRequest »
NSFetchRequest *request = [Report fetchRequest]; request.predicate = [NSPredicate predicateWithFormat: @"reportId IN %@",self.selectedRowsInEditMode];...
(2) odpowiedzi
2017-11-27 17:11 NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier : Download stops after the app is pushed into background »
This method sets the background object. - (void) downloadWithURL: (NSMutableArray *)urlArray pathArr: (NSMutableArray *)pathArr ...
(1) odpowiedzi
2017-11-27 15:11 ld: framework not found libpq »
Im making a iOS app and have to connect to a PostgreSQL database without web service (connect directly with the database). I started my journey from h...
(1) odpowiedzi
2017-11-26 22:11 Adding events to NSWindow - cocoa Objective-c++ »
I've seen a lot of questions, but I couldn't find anything what helped me. I've looked at many Apple developer pages, but I find those to be a bit unc...
(1) odpowiedzi
2017-11-26 20:11 Forcing all UIKit stuff to be done in the main thread »
I am doing a complex application that has to do stuff on a lot of threads and frequently update the interface. So I have to add a lot of dispatch...
(1) odpowiedzi
2017-11-26 07:11 iPhone Vibration Control »
I'm trying to write an app that alerts users based on number of vibrations. There are 8 possible vibrations... Each mean something else, they are in t...
(0) odpowiedzi
2017-11-25 19:11 "unrecognized selector" error with bridging header even it's added in settings »
I added the .h and .m files of this project and created a bridging header. I made sure that the bridging header location is entered correctly in proje...
(2) odpowiedzi
2017-11-25 15:11 Accessing Objective-C Pointers in Swift »
I have this Objective-C Code fragment, which I want to express in Swift CFArrayRef windowList; AXUIElementCopyAttributeValue(appRef, kAXWindowsAttrib...
(2) odpowiedzi
2017-11-25 14:11 Unresolved Identifier from #define in imported Objc header file »
i have an Obj-c class "constants.h" that looks like this: // constants.h #import <Foundation/Foundation.h> @interface constants : NSObject #...
(2) odpowiedzi
2017-11-24 15:11 ios filter table data alphabetically »
I'm working on a contacts app with 40k+ contacts. In the list view, I'm showing the index titles A-Z based on the contact data. Now I need to filt...
(0) odpowiedzi
2017-11-24 10:11 How to do Quick Replay of notification like whats app or iMessage in iPhone? »
I want to do code for Quick replay in iPhone app, Please know we can i achieve it? I have tried notification extension but with it replay is not possi...
(0) odpowiedzi
2017-11-24 09:11 Passing a swift function as a parameter in objective-c »
I have a swift class, A, which accepts delegates. I have another swift class, B, which implements the delegates. Now the object of A is instantiated f...
(1) odpowiedzi
2017-11-23 23:11 ios 11 - UIButton inside UIBarButtonItem causes an autolayout error »
I've a known issue with adding a UIButton into UIBarButtonItem. I've tried to add auto layout constraints as suggested in stackoveflow but I'm getting...
(3) odpowiedzi
2017-11-23 19:11 Cast from '(NSNumber) -> NSNumber' to unrelated type '(Any) -> Any' always fails »
I convert this Objective-C function: - (NSArray *)grt_map:(id (^)(id))block { NSMutableArray *newArray = [NSMutableArray array]; [self enumer...
(1) odpowiedzi
2017-11-23 08:11 Unsupported Header Format while conversation of file from .mov to .wav format and It happens only in below iOS 11 devices (like iOS 9,10) »
Below is my code about what i have done for this .mov to .wav conversations : - (void)mp4ForURL:(NSURL *)videoURL{ // Create the asset url with ...
(0) odpowiedzi
2017-11-22 22:11 Is protocol conformance in method parameters optional? »
Does the Objective-C compiler not enforce that method parameters should conform to protocols, if that is how the method is declared in another protoco...
(1) odpowiedzi
2017-11-22 22:11 How to extract AVMetadataObject info from UIImage »
I am trying to read QR from UIImage. I know we can do this using AVFoundation from iOS 7 (AVMetadataObject.ObjectType.qr). i ended with sample app whi...
(0) odpowiedzi
2017-11-22 21:11 Suppressing "is partial: introduced in iOS" in parts of code »
My app is available also for iOS9... when declaring however - (UISwipeActionsConfiguration *)tableView:(UITableView *)tableView trailingSwipeActions...
(1) odpowiedzi
2017-11-21 11:11 Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MKUserLocation tag]: »
i just compare two values but sometime app crash. How to handle it. NSString * markerid = [_selectedCoordinate objectForKey:@"markerid"]; for(C...
(1) odpowiedzi
2017-11-21 09:11 Xcode "Analyze" message confusion »
I have inherited an old Objective C project which is not using ARC, and due to third party library uses, can use ARC. I'm attempting to resolve a num...
(2) odpowiedzi
2017-11-21 00:11 Calculate new scroll view content inset when showing/hiding nav bar »
I am replicating Facebook/Apple News hide/show nav bar functionality. I can hide/show the nav bar but I don't know how to calculate the scroll view's ...
(0) odpowiedzi
2017-11-20 16:11 iOS websocket memory issue in React Native »
We're experiencing a memory leak when using the websocket blob implementation in React Native, and can't quite locate the issue. Using Xcode Instrume...
(1) odpowiedzi
2017-11-20 11:11 extract the view from ReplayKit without presenting the view controller in iOS objective c »
i am using ReplayKit for screen recording and i need to get a hold of the video instead of presenting it in the viewController, i have tried the follo...
(1) odpowiedzi
2017-11-20 08:11 protocol optional methods giving crash when not implement »
I am using protocol with some optional methods used #import <UIKit/UIKit.h> @class TextViewTableViewCell; @protocol TextViewTableViewCellDeleg...
(2) odpowiedzi
2017-11-19 23:11 attempting to color in a UIImageView »
I'm trying to "color" in a UIImageView of mine. I'd like to draw a POINT everytime I call this function. UIGraphicsBeginImageContext(self.sheetTest.f...
(0) odpowiedzi
2017-11-19 20:11 How to correctly include C++ static library to iOS project »
I have a project which contains C++ static library (mylib.a), header for it (mylib.h) and objc class which use functions of this library (.h/.m). I'm ...
(2) odpowiedzi
2017-11-19 07:11 How to make pagination with UITableView along with UISegmentedControll »
My view controller has a UISegmentedControll with 6 buttons/segment. It also has a UITableView under that Segmented Controll. If we switch segment by ...
(1) odpowiedzi
2017-11-18 10:11 Sorting array of dictionary in alphabetic order »
I have an array of 3 objects. The objects are of type of dictionaries. Each dictionary has different keys. I want sort this array in alphabetic order....
(1) odpowiedzi
2017-11-18 04:11 Aladdin eToken smartcard not showing on keychain access app - OSX High sierra »
I am having Aladdin eToken smart card and installed TokenD using OpenSC package for Mac.But inserted smart card certificate is not showing the in Keyc...
(0) odpowiedzi
2017-11-18 01:11 UIKeyCommands and UISplitviewController »
I'm using a UISplitViewController in my app. The Master consists of a UINavigationController and the detail consists of a UITabBarController. In the ...
(0) odpowiedzi
2017-11-17 18:11 Are argument types optional for methods? »
I came across this unusual bit of Objective-C today which, to my suprise, compiles without fail and outputs "hi": #include <Foundation/Foundation....
(1) odpowiedzi
2017-11-17 10:11 Did NSDate change it's description output? »
When I log an NSDate to the console like this: NSDate *date = [NSDate date]; NSLog(@"date: %@", date); it logs the output: date: Fri Nov 17 09:...
(1) odpowiedzi
2017-11-17 05:11 How to handle Pinch and Pan Gesture UIView inside UIScrollview? »
could anyone tell me how to handle Pinch and pan gesture UIView inside UIScrollview. I have to display both 2 videos at the same time and can use pan...
(0) odpowiedzi