Data dodania Pytanie
2017-12-09 23:12 Exclude Swift Class from Bridging Header »
In a Swift project that has mixed Obj-C and C++, I have a class that extends the class belonging to a 3rd party framework. When I compile the project,...
(0) odpowiedzi
2017-12-09 13:12 Sending float* from Objective C to C# »
I am making a Unity project and trying to send float* array received at BLE (BlueTooth) at iPhone to C# code at Unity project. Those function calls i...
(1) odpowiedzi
2017-12-09 07:12 Obj-C - TableView scroll to bottom after data reloaded? »
I'm trying to have my tableview scroll to the bottom after new data is loaded. For example I have a chat window that is loading new messages once my '...
(1) odpowiedzi
2017-12-08 16:12 How to reset permission of geolocation in wkwebview »
If once user didn't allow location to specific site in WKWebview and again user open same website then WKWebview will not take permission of geolocati...
(1) odpowiedzi
2017-12-08 09:12 ScrollBar always visible »
I found great piece of code under the link here. But in my case there is more to do. My main VC is a UITableViewController. Controller can display t...
(1) odpowiedzi
2017-12-08 04:12 Why do I get Use of undeclared identifier 'downloadDataFromURL' when method is defined in same class? »
I have written a method that I want to reuse from another method in the same class but I am getting this error message and I don't understand why, how...
(1) odpowiedzi
2017-12-07 20:12 UIBezierPath on UiView doesn't update until scroll the tableview »
I have added UIView to cell of Tableview and given the beizer path to bottom and right by following: UIBezierPath *shadowPath = [UIBezierPath bezierP...
(1) odpowiedzi
2017-12-07 12:12 UINavigationController hidesBarOnSwipe memory leak issue »
I've got a problem with hidesBarOnSwipe property of UINavigationController. Overview : Link to project file I have one controller named FirstViewCo...
(1) odpowiedzi
2017-12-07 04:12 Firebase Dynamic Link can’t open app directly »
According to Firebase document, I create Dynamic Link in Firebase console, then include the Dynamic Links SDK in my app. Everything is good, but whe...
(1) odpowiedzi
2017-12-06 17:12 Project-Swift.h file not found »
I have a new Swift project with a few files, I've needed to add some Objc code. In Build Settings, my Objective-C Generated Interface Header Name is ...
(2) odpowiedzi
2017-12-06 15:12 Objective-C: What does this code mean? »
In the MyViewController.h file: @property (nonatomic, copy, nullable, class) void (^saveMetadataSuccess)(MyViewController*const _Nullable myViewContr...
(1) odpowiedzi
2017-12-06 02:12 Make button move around the screen and record finger gesture accuracy »
I am trying to make an app in which the user has to follow a dot dragging his finger across the screen. Each time the dot is reached by the user, it...
(1) odpowiedzi
2017-12-05 17:12 React Native 0.40.0: Ordered comparison between pointer and zero ('NSNumber *' and 'int') »
I have a React Native project that is still on 0.40.0 and when I try to build in XCode for Simulator: Ordered comparison between pointer and zero ('N...
(1) odpowiedzi
2017-12-05 15:12 iOS10 __weak pointer made retainCount +1 »
When I use __weak pointer refer to an NSObject, the unexpected retainCount is shown. The test code and result are as the image below. Here is the ...
(1) odpowiedzi
2017-12-05 12:12 Best practice for handling navigation to many ViewControllers which can be navigated to by many ViewControllers within an application? »
The purpose of this question is to find the best practice for handling navigation to many ViewControllers, which can be navigated to by many other Vie...
(0) odpowiedzi
2017-12-04 12:12 Move to root view from any where in the application »
I need to move user to navigation controller root view whenever user receive push notification. in my app there is side menu. navigation controllers...
(1) odpowiedzi
2017-12-04 11:12 What is the best way to disable horizontal scroll of UIScrollView? »
In UIScrollView, I have content height and width greater than scrollview's size. So basically it can scroll horizontally and vertically. What I want i...
(2) odpowiedzi
2017-12-04 08:12 objective-c metadataOutputRectOfInterestForRect return {{0, 0}, {0, 0}} »
Updated!!! I'm using metadataOutputRectOfInterestForRect to convert rectangle in order to use AVCaptureMetadataOutput rectOfInterest. But when transl...
(1) odpowiedzi
2017-12-03 15:12 Matching the entire input with Regex, Objective-C »
I have an application that communicates with a serial port. I am looking to create a packet descriptor with regex that can recognize the expression. ...
(1) odpowiedzi
2017-12-03 10:12 Configuration for Clang formatting »
I have following objective-C codes written in XCode without any formatting. [Fasttttttttttttttttttttttttttttt showFireStarterAlert:^{ [self gener...
(0) odpowiedzi
2017-12-03 06:12 drawRect not being called on a UIView »
I've added a UIView to my View Controller. I set its subclass to this newDrawingView.h file. // // newDrawingView.m // slate // // Created by Moni...
(0) odpowiedzi
2017-12-02 23:12 Storing game states and scores in keychain »
I am trying to store some strings (scores, lastPlayedLevel, etc) of my game in keychain. Because it is said to be the most safe method. Since I am ne...
(1) odpowiedzi
2017-12-02 07:12 How to escape from the bracket when writing Objective-C with Xcode? »
I find writing Objective-C with Xcode sometimes could be painful when trying to escape from the bracket, like I have to use the mouse or the directio...
(2) odpowiedzi
2017-12-02 04:12 UICollectionView and UICollectionViewCell not functioning »
I'm trying to create my own custom UICollectionView For starters, I added a CollectionView to my Storyboard. The reason for the PURPLE is because a...
(1) odpowiedzi
2017-12-01 12:12 The app's Info.plist must contain an NSMotionUsageDescription key »
I am getting the following error during the runtime: This app has crashed because it attempted to access privacy-sensitive data without a usage descr...
(1) odpowiedzi
2017-12-01 11:12 Xcode Memory Graph Debugging Icon not showing »
I've recently started working on an existing objc project and wanted to check the memory graph debugging tool. As I started a debugger with the app I ...
(0) odpowiedzi
2017-12-01 08:12 Concurrency on NSMainQueueConcurrencyType and NSPrivateQueueConcurrencyType contexts? »
Managed object context initialised with NSMainQueueConcurrencyType and NSPrivateQueueConcurrencyType ties to main queue and private queue which are s...
(1) odpowiedzi
2017-11-30 14:11 TwitterKit iOS - How to get tweets using Guest Authentication »
I have got the guest user authentication which contain accessToken and guestToken. I need to fetch the tweets from user account. How can I achieve thi...
(0) odpowiedzi
2017-11-30 13:11 How to remove dots only from starting of string »
My string text is Like - 1) .....bla ..bla... 2)...bla.. bla…bla. 3).bla.. bla…bla. dots are not static.I want to remove dots only from starti...
(4) odpowiedzi
2017-11-30 09:11 Is it possible to remove dispatch_once in Objective-C++? »
Since C++11, local static variables are known to be initialized in a thread safe manner (unless the -fno-threadsafe-statics is given), as specified in...
(2) odpowiedzi
2017-11-29 22:11 Why am I crashing when trying to create a weak reference to self while dealloc is happening on another thread? »
Background Our app has a class that attempts to implement the Receptionist Pattern for KVO observation. Other classes throughout the app (such as vi...
(1) odpowiedzi
2017-11-29 18:11 Check if Documents Directory Url empty »
In the below code I am trying to check if my Documents Directory Url is empty, so in case it's empty it will show now way or continue to do what ever ...
(1) odpowiedzi
2017-11-29 15:11 WKWebView not saving cookies on iOS 11, but works fine on iOS 10 »
I have a WKWebView that displays a webpage with login. After logging in, it saves the cookies and takes the user to his admin panel (again, everything...
(0) odpowiedzi
2017-11-28 16:11 Marking plain -init to have a nullable return type without a warning »
I have an ObjC class inheriting from NSObject that wraps some third-party library macros so that I can use their functionality in Swift. The class has...
(0) odpowiedzi
2017-11-28 15:11 ios Setting the RoundCorner does not work after override drawRect,but normal UIView is ok »
I wrote an example about Wave Animation.The animation is ok,but I don't understand why the custom UIView needs to add "self.layer.masksToBounds = YES"...
(1) odpowiedzi