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.

learn more… | top users | synonyms (2)

0
votes
1answer
6 views

NSDateFormatter setDateFormat: What's the difference between “DD” and “dd”?

Using NSDateFormatter to parse a date. The date below is May 2 2013. I get different results (shown below) depending on whether I use "DD" in the dateFormat string and "dd" NSString * dateStr = ...
0
votes
0answers
16 views

Updating an UILabel looks like wasting performances

I'm working on a project, where i have to update the text of a UILabel really regularly (0.085f). So, I insert the update of the label in a loop like this : MetresNumber = MetresNumber + 0.25; ...
-2
votes
2answers
30 views

How do l call this method -(int)match:(NSArray *)otherCards;

How to l call this method from a different class because l have tried and its failing see code #import <Foundation/Foundation.h> @interface Card : NSObject @property (strong, nonatomic) ...
2
votes
2answers
33 views

Why do PHP and Obj-C encode strings differently?

I'm trying to convert a string to UTF8, on both obj-c and php. I get different results: "\xd7\x91\xd7\x93\xd7\x99\xd7\xa7\xd7\x94" //Obj-C "\u05d1\u05d3\u05d9\u05e7\u05d4" //PHP Obj-C code: const ...
4
votes
2answers
45 views

Objective-C add functionality to every method of an object

i want to build a small plugin-system for objects in objective-c. Now i am stuck at the point where i want to dynamically (at runtime) add a line of code to every function available in an object. I ...
-2
votes
0answers
15 views

Accessing reward object in PlayHaven delegate method

I followed the instructions for implementing PlayHaven in order for my app to connect to their server and it works. Now I am trying to implement their reward system in my app. I set up a reward on my ...
0
votes
0answers
5 views

Change Font Size for two Components in PickerView

I`m trying to change the Font Size of my PickerView. I figured out how to do that for one Component. But how do i do it for two. Here is my Code: - (UIView *)pickerView:(UIPickerView *)pickerView ...
0
votes
1answer
23 views

Rotating UIImageView Moves the Image Off Screen

I have a simple rotation gesture implemented in my code, but the problem is when I rotate the image it goes off the screen/out of the view always to the right. The image view that is being rotated ...
0
votes
2answers
20 views

NSMutableURLRequest and JSON - How would I finish this connection?

I am trying to fetch data from an api and I have this code: // create the URL we'd like to query NSString *urlString = [NSString stringWithFormat:@"https://www.googleapis.com/adsense/v1.1/reports"]; ...
1
vote
1answer
24 views

Making an element an element display on top of the UIView border

I am trying to place a UIButton inbetween my popup view and the parent view. I cant successfully do that by doing that [self.view addSubview:new];. My problem there is the border UIView can be seen ...
0
votes
1answer
6 views

issue with constraints in autolayout and SMPageControl

Here is an error from my console concerning my auto layouts of some view components I have a view, with two subviews, a swipe view and an SMPageControl view. Here are the constraint errors when I try ...
0
votes
0answers
11 views

How to create a 1 column tableview of checkboxes in cocoa

What are the correct steps to create a single column tableview with a fixed number of checkboxes. For example the column could have the following (X indicates the checkbox checked, _ indicates the ...
0
votes
1answer
13 views

Perform segue from UIBarButtonItem

I've been trying to perform a segue from a UIBarButtonItem (to be exact, it's a compose icon). It's supposed to be a segue from a UITableViewController to a UIViewController. I set up the connection ...
1
vote
0answers
41 views

function not present when calling

I have implemented the leptonica library within my xcode project (Objective-C) and it has worked well until I tried calling a bunch of new functions that are not present. The problem is that I can see ...
-4
votes
3answers
34 views

(NSNotificatioinCenter) How to add observers in different classes in objective c [closed]

can someone explain me how to use notification center if I want to add observers in different classes, for example: post a notification in classA, and add 2 observers, 1 in classB and another one in ...

1 2 3 4 5 9209
15 30 50 per page