Tagged Questions
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 "ios" and "osx" for issues specific to those platforms.
-1
votes
0answers
8 views
GameKit on OS X 10.7 work-around
I have a game with game center support on osx 10.8. On 10.7 it will fail to load because it cannot find the library. I know this feature comes with 10.8, but what can I do to don't use gamekit on 10.7 ...
0
votes
2answers
11 views
iOS: NSMutableDictionary propery won't set
For some reason I can't get an array added to a nsmutabledictionary. I have it declared as a property in my .h file here:
@interface TCMExhibitFeedStore : NSObject
@property (nonatomic, strong) ...
3
votes
0answers
19 views
When to use NSSecureCoding
I'm learning about the NSSecureCoding protocol introduced by Apple in iOS 6.
From my understanding so far, it should be used whenever a class encodes/decodes instances of itself, in order to prevent ...
0
votes
1answer
14 views
Take a screenshot of UIScrollView, starting at contentOffset point?
I looked at this code here, which lets you take a screenshot of either the top visible portion of a UIScrollView or of the whole UIScrollView:
Getting a screenshot of a UIScrollView, including ...
0
votes
0answers
11 views
viewController.delegate.presentedViewController is null in unit-test
In general, after calling the presentViewController method on a view controller, why would the presentedViewController be properly set within the application, but null within a unit-test?
In this ...
0
votes
0answers
12 views
get the value of confirm dialog box in UIWebView
Good Evening,
Can we detect the confirm dialog box appearing in website loaded in UIWebView. If any know how to handle in UIWebView Delegate method. Given below code written in the source file i ...
0
votes
1answer
8 views
Two ImagePickerControllers in one View
i have two imagepickers in my app. i have done the first correctly. user can choose from library or capture a photo and see it in the View. But when i try to copy codes and paste it and change action ...
0
votes
1answer
22 views
UISegmentedControl not receiving touches
Here's my code:
UISegmentedControl* scTopNav = [[UISegmentedControl alloc] initWithItems:[[NSArray alloc] initWithObjects:@"Show Comparison", @"Estimated Annual Units", nil]];
[scTopNav ...
0
votes
1answer
6 views
addPropertyMapping method of RKObjectMapping work only for one property mapping
When i use addPropertyMapping method of RKObjectMapping for two times it will not work fine. I mean, we can add a RKRelationshipMappping by addPropertyMapping. It will work fine for ...
0
votes
0answers
5 views
How to delete event from iCal added from my app.?
I'm developing an app in which when user add any event as his favorite, I'm adding that event to iCal but how do i remove that event from iCal if user removes that particular event from his favorite.?
...
1
vote
1answer
16 views
how to initialize a NSMutableOrderedSet
Can someone show me how to initialize an NSMutableOrderedSet?
I tried the following
NSMutableOrderedSet *answerSet = [NSMutableOrderedSet orderedSet];
but hang there an the log is just (lldb)
...
0
votes
0answers
8 views
How to setup Aftek RtmpLib in XCode 4.6.2 project?
I have difficulties using Aftek RtmpLib library in my XCode 4.6.2 project. There are two libraries - one for the simulator and one for the device. I try to follow their instructions as well as other ...
0
votes
2answers
17 views
Walls like in Labyrinth game
I have two images: a marble and an obstacle.
I want to make sure the marble cant roll over the obstacle.
If the marble touches an edge of the obstacle it should be set to the previous coordinates so ...
0
votes
1answer
28 views
Disabling a navigation bar button item
When setting the right navigation bar button to disabled, it does not change its color to signal its disabled state to the user.
It remains "highlighted", non-greyed-out.
I have set up the button in ...
1
vote
3answers
37 views
Call class method on object of unknown class
I added a set of classes to an array, all which I know have the same superclass:
[array addObject:[Africa class]];
[array addObject:[Brazil class]];
[array addObject:[France class]];
Later, I want ...