objective-c

CameraOverlayView buttons

Hi Guys, I'm adding a cameraOverlay to my UIImagePickerController, it shows and all but it doesn't register touches. I init a button in the viewDidLoad and a one via IB. Is there some rule that prohibits me from adding a UIButton to a cameraOverlayView and register touches? Thanks ...

how to disable symbols after dot in double values

Hi all! How to disable symbols after dot in double values? 13 + 3.456 = 16.456 GOOD 13 + 1 = 14.00 BAD! I need 14 how can I do It? I am using NSMutableString. ...

Problem in hitting web service ..

Hi, I have an application in which I need to hit 2 webservices on a single button action. -(IBAction)hitAction { [webServiceObj hitWebService1]; [webServiceObj hitWebService2]; } The connection delegates and parser delegates have not been called for the 1st web service. For 2nd web service all the delegates for connection and pa...

User specific issue with iPhone SDK

Hey guys. I'm having this problem for 2 days now and I really don't know what to do anymore. When I run the iPhone 4 simulator and click a specific picker, the app crashes with the error: 'NSRangeException', reason: '* -[NSMutableArray objectAtIndex:]: index 4294967295 beyond bounds [0 .. 3]' However, it doesn't happen with...

UIButton sender title problem

Hi all, seems like a quite easy problem but I don't get it. It have two UIButtons, one is titled 'next' the other is titled 'previous'. Both are linked to the same method. All I wanna do is change the variable 'helpStatus'depending on which button is pressed: if([sender currentTitle] == @"next"){ helpStatus++; } if...

Warning about battery when using Core Location.

I see a lot of apps that use GPS in the iPhone have the following warning in the App Description: Warning: Continued use of GPS running in the background can dramatically decrease battery life. If an App uses the background processes (like startMonitoringSignificantLocationChanges or Region Monitoring) Apple suggested that the battery ...

Scrolling problems with UITextFields in cells in Objective-C for iPhone

Hi there! I have following problem: I've got an UITableView with 7 custom cells. Each of these cells hold a label and an UITextField in it. Since the cells are somewhat big, you have to scroll down to see the last 3 cells. The problem is, as soon as I scroll down, the text in the textfields of the first 3 cells (those, that aren't visibl...

iPhone: part of view gets pushed off screen

Hello, I've implemented two different transition techniques to try with my app, one button for each one. I use presentModalViewController:myView for the first button and CATransition on the second. The ModalView one works but my CATransition has a bug: it slides the entire view a little off screen, as shown in pictures, with a white fr...

Application Crashes due to Low memory

My app crashes after playing for more than 30 min on some screen due to low memory will my app get reject due to this? actually i tried a lot to solve but it shows no trace in instrument i even did all permutation combination of code by commenting checking what causing the problem but i was not successful to solve it yet. its an ipad ap...

Is there any iOS implementation of the Bayeux protocol (COMET, server push to client)?

Is there any library with implementation of the Bayeux protocol, for use in iOS (iPhone/iPad) development, for the building Server push technology iPhone client? And what are your suggestion for doing this? ...

Open view in another tab - iphone

Hi, I want to allow the user to click on a button in "tab A" and have it move to "tab B". Is this possible? Thanks, William ...

Parse NSURL query property

Hi there I have a URL like myApp://action/1?parameter=2&secondparameter=3 With the property query I get following part of my URL parameter=2&secondparameter=3 Is there any way easy to put this in a NSDictionary or an Array? Thx a lot ...

removeItemAtPath on a file already open

Hi all, I have a file open on the iPhone that I am sending the data of across the network (Opened using "_open"). However I have the ability to delete files from the iphone's interface. This is done using NSFileManager's removeItemAtPath. The odd thing is that removeItemAtPath is succeeding even though the file is currently open. ...

timestamp and subtract objective C

I need to find the specific time a tap happens and then the time since it has passed. I have the app counting taps, I just haven't figured out the time thing. I tried: timeStamp = [[NSDate date] timeIntervalSince1970]; but I'm new to obj c and clearly there is a syntax problem. Thanks for anyhelp. ...

Objective-C Category Causing unrecognized selector

My project has a UIImage category function that I want to call from another class. I properly import the header file for the image category and I get the project to compile with no warning. The problem is that when I call the uiimage category function I seen an unrecognized selector error with a NSInvalidArgumentException. Why am I seei...

Carry out action when multiple properties change

I have three different properties, x, y, z. If they all turn nil, I need to take an action, and if one of them is set to a value != nil, I have to carry out a different action. My current implementation is the following: @property (readonly) NSNumber *meta; + (NSSet *)keyPathsForValuesAffectingMeta { return [NSSet setWithObjects:@"x...

Beginner path to Game Development for OS X and iPhone

Another question. I have been researching everything this wonderful community has offered me in terms of my journey to pursue game development. I have come to the conclusion that I would prefer to develop on my native machine, OS X - eventually leading to the iPhone. I already own both Big Nerd Ranch guide's, Iphone Programming - the ...

Subclassing UITableViewController what you get?

This is probably me being a little dim, I am setting up a UITableViewController via a UINavigationController, I have subclassed UITableViewController: (see below) and have implemented the datasource methods to get my table up and running @interface RootViewController : UITableViewController { NSArray *dataList; } @property(nonatomic...

Using constant objects in objective-c

I have a piece of code similar to this: //Foo.h OBJC_EXPORT MyObject *const myObj; // Foo.m MyObject *const myObj; @implementation Foo +(void) initialize { if (self = [Graph class]) { myObj = [Config get:@"Foo"]; // <--- ERROR! assignment of read-only variable 'Foo' // .... } } // .... @end This ...

iphone & Objective C - Filtering an array using NSPredicate ???

I have an array of objects (Users) each user has an nsset named "devices" Is it possible to filter so the array returns all users who have a device with a specific name. NSPredicate *predicate = [NSPredicate predicateWithFormat:@"devices.category==%@", @"mobile"]; myArray = [allUsersArray filteredArrayUsingPredicate:predicate]; ...