Data dodania Pytanie
2017-03-29 15:03 NSLayoutConstraint re-activates by itself »
I created a strong constraint for a UILabel in a .xib file and an outlet for it. In my code, I set self.constraint.active = NO, but after the applica...
(1) odpowiedzi
2017-03-29 13:03 Swift hash a string using hash_hmac with ripemd160 »
I'm trying to hash a String in Swift 3 (and/or objective C) using ripemd160 to emulate the output of the following php: $string = 'string'; $key = 't...
(2) odpowiedzi
2017-03-28 18:03 How to use requestReview (SKStore​Review​Controller) to show review popup in the current viewController after a random period of time »
I've read about this new feature available in iOS 10.3 and thought it will be more flexible and out of the box. But after I read the docs I found out ...
(2) odpowiedzi
2017-03-28 17:03 `@discardableResult override init()` in Swift 3.1 throwing `warn_unused_result` Objective-C warning »
I have a Swift class that is bridged to Objective-C. Even with @discardableResult, it's throwing this warning on build in the Objective-C class: I...
(0) odpowiedzi
2017-03-28 15:03 NSStrikethroughStyleAttributeName , How to strike out the string in iOS 10.3? »
I have used this line of code before release of iOS 10.3 ,and worked fine. NSMutableAttributedString *attributeString = [[NSMutableAttributedString a...
(2) odpowiedzi
2017-03-27 15:03 Once NSTimer stop dismiss my view controller in objective c »
I am using NSTimer, timer = [NSTimer scheduledTimerWithTimeInterval: 1.0 target:self selector:@selector(updateCountdown) userInfo:nil repeats: YES]; ...
(2) odpowiedzi
2017-03-27 10:03 'va_start' used in function with fixed args »
I have Logger.h with following code: #import <Foundation/Foundation.h> #import <asl.h> #define LogDebug(format, ...){ \ Logger(ASL_LEV...
(1) odpowiedzi
2017-03-27 05:03 UI update on NSThread »
I create a NSThread to change the text of textField,and i make sure the NSThread is not main thread.Though,the textField'text changed.Shouldn't the UI...
(3) odpowiedzi
2017-03-26 18:03 'VA_ARGS', an invalid preprocessing token in macros Obj-C »
I use following technique to manage my logs. I print logs to asl_log and before, regards to flag [DebugManager shared] isDebugging I want to send log ...
(1) odpowiedzi
2017-03-26 18:03 Apple Mach-O Linker Error when migrating to Swift 3 »
I have to migrate a project from Swift 2.3 to Swift 3. In this application there is also Objective C parts. So far I experienced several issues, but t...
(0) odpowiedzi
2017-03-26 06:03 How to disable UI rotation in iOS, but rotate in VoiceOver? »
I am attempting to replicate the experience of the iOS camera where, upon rotation, the UI itself does not rotate, but the individual elements do. Vis...
(0) odpowiedzi
2017-03-25 23:03 Disable automatic bridging in some cases »
From Using Swift with Cocoa and Objective-C - Working with Cocoa Frameworks: Swift automatically converts some Objective-C types to Swift types, a...
(1) odpowiedzi
2017-03-25 18:03 Using Objective-C lightweight generic type in Swift gives AnyHashable for type parameter »
I have the following implementation: MySet.h: @interface MySet<T> : NSObject @property (strong, atomic, readonly) NSSet<NSDate *> * key...
(1) odpowiedzi
2017-03-25 11:03 How can I show multiple events on Calendar from web service in Objective C »
I am new in iOS and I am facing problem regarding to show multiple events on calendar from web service.I am getting value from 3 web service.I am usin...
(1) odpowiedzi
2017-03-24 19:03 iOS UISlider values mismatched »
I have implemented Vertical Slider in one of my App which extends UISlider. when scrolling is ended/done I am sending commands to the server with the ...
(2) odpowiedzi
2017-03-24 08:03 TableviewCell View's Wrap content in ios »
I have 3 view's in UITableviewCell. the 1st view need to be match parent(like in android), and other two view's needs to be in wrap content. when i hi...
(1) odpowiedzi
2017-03-24 07:03 How to sort integer values of NSMutableArray [Objective C]? »
I wanted to sort the integer values of my NSMutableArray. I don't know to to do it. Any help please ...
(1) odpowiedzi
2017-03-23 23:03 iOS Dropbox API : how to tell folders from file packages? »
I'm using Dropbox iOS API v2. When trying to sort out folders from files, files that are packages (i.e. a preferences file, or xcodeproject file, .fra...
(2) odpowiedzi
2017-03-23 10:03 How to give two thumbs for UISlider »
How can we get the range between two thumbs in UISlider. My application contains price range selection i didn't get with a single thumb. Here i need t...
(1) odpowiedzi
2017-03-23 08:03 How to tell if 'Mobile Network Data' is enabled or disabled (even when connected by WiFi) in iOS? »
I have an app that I want to be able to use to get a connection status report after some certain time interval. Even when I am connected or associated...
(4) odpowiedzi
2017-03-22 14:03 Remove NSEntityDescription Objects from list of Core Data »
I wanted to remove all my NSEntityDescription objects from core data and release the memory. the reset function doesn't make any difference to to the ...
(1) odpowiedzi
2017-03-22 13:03 iOS10 - userNotificationCenter didReceiveNotificationResponse called with a 10sec delay »
I just upgraded my whole iOS push notifications registering for iOS 10, with this code: -(void)registerForNotifications{ if(SYSTEM_VERSION_GRATERTHAN...
(1) odpowiedzi
2017-03-22 00:03 Objective-C++ Error: Expected unqualified-id »
Recently I checked out an old app of mine which at the pint when I stopped working on it, it was still working fine. However now with every time I def...
(1) odpowiedzi
2017-03-21 21:03 Xcode app keyboard looks stretched »
I have an iOS app, built in Xcode using Objective-C, released and on the app store. I have noticed that the keyboard in my app seems to be quite a bi...
(1) odpowiedzi
2017-03-21 14:03 Capturing touches on a subview outside the frame of its superview (over multiple layers) »
I have a similar problem described in this thread: Capturing touches on a subview outside the frame of its superview using hitTest:withEvent: Situati...
(2) odpowiedzi
2017-03-21 07:03 how to retrieve sqlite column values and store in to the array in objective c? »
Here is my code i am getting only the last value of the database in the array but i need the entire column values in my array... //select the values ...
(2) odpowiedzi
2017-03-20 22:03 Encrypting in PHP, decrypting in IOS »
I'm trying to figure out how to send encrypted data to my IOS app from a web page. In php I have a page that encrypts a string and then echos it out ...
(2) odpowiedzi
2017-03-20 13:03 Lock all screen orientations to portrait except for 1 »
I'm developing an iOS app that can only be accessed in portrait mode. Except 1 framework (1 out of the 80 screens in my map) that I'm using needs La...
(2) odpowiedzi
2017-03-20 08:03 iOS - Detecting Silent Mode »
I need to detect if the phone is in silent mode or not. I found old way and new way (playing an .caf file) but none of them worked correctly. Old way ...
(1) odpowiedzi
2017-03-19 23:03 How to create an Empty Application without LaunchScreen in Xcode 8 »
Following the accepted answer to How to create an Empty Application in Xcode 6 without Storyboard I managed to have an empty application working in Xc...
(1) odpowiedzi
2017-03-19 14:03 Downloading file with swift and objective-c »
I have 2 projects with 2 different languages. Objective-c project and swift project to download the file from url. The problem is that in objective-...
(1) odpowiedzi
2017-03-19 13:03 How does NSApplicationMain find the main nib file? »
The documentation for the NSApplicationMain function says that it loads the main nib file from the application’s main bundle It's suggested on...
(1) odpowiedzi
2017-03-18 22:03 Is following use of objc @protected directive safe/legit? »
I have to expose a private property to sub-classes. Since there is no such thing as "protected properties" in objc AFAIK, I'm using the @protected dir...
(2) odpowiedzi
2017-03-18 20:03 How to create object methods in JSContext »
I'm implementing JavascriptCore in an app. I've set up a JSContext and I'd like to be able to add some object methods to it. Ideally, what I'd like to...
(0) odpowiedzi
2017-03-18 12:03 How to detect iOS SMS capability (NOT text messaging in general) »
I'm writing an app that optionally allows you to send an SMS to a list of users. The app currently detects whether the device allows the sending of te...
(1) odpowiedzi