iphone

Including Objective C++ Type in C++ Class Definition

I've got a project that is primarily in C++, but I'm trying to link in a Objective-C++ library. I have a header that looks something like: CPlus.h: #import "OBJCObject.h" class CPlus { OBJCObject *someObj; }; CPlus.mm: CPlus::CPlus() { someObj = [[OBJCObject alloc] init]; } When I import the Objective-C++ header into my code...

Name of App in App Store

I want to submit an app to the app store. The app has been developed with one name all along - "Monkeys". However, now it needs to be changed to "Apes". Do I just need to change the Bundle display name to "Apes"? If I do this, it appears as "Apes" in the simulator and device, but the Product is still called Monkeys.app. Should I worr...

NSSortDescriptor for comparing CLLocation objects in Cocoa/iPhone

I have an array of CLLocation objects and I'd like to be able to compare them to get distance from a starting CLLocation object. The math is straight forward but I'm curious if there is a convenience sort descriptor to go about doing this? Should I avoid NSSortDescriptor and write a custom compare method + bubble sort? I'm usually compar...

viewDidLoad getting called twice on rootViewController at launch

Anyone know why this root View Controller's viewDidLoad is being called twice at launch? It's driving me nuts! here's the stack trace from first time through viewDidLoad: #0 0x0000276a in -[RootViewController viewDidLoad] at RootViewController.m:71 #1 0x3097548f in -[UIViewController view] #2 0x00002734 in -[RootViewController init...

Optimizing CLLocationManager/CoreLocation to retrieve data points faster on the iPhone

Hi all, I'm currently using CoreLocation + CLLocationManager in order to compare a users current location to N amount of other locations. The problem I'm facing is I'm dealing with urban areas where locations are close to each other, so I need to pin point the location of the user as accurately as the device allows without sacrificing t...

Books on OpenGL ES targeted towards the iPhone

There are a few posts on this site about OpenGL and the iPhone. Some even on books but I think you'll find this question is a bit different. I've searched and searched and have come to the conclusion that there are currently no books that specifically cover OpenGL ES on the iPhone platform. There are books that cover OpenGL ES [2.0] (n...

iPhone: Hide UITableView search bar by default

I used the Interface Builder to create a table view, to which I added the library's Search Bar and Search Display Controller to add search functionality. However, IB set it up so that the bar is visible at the top of the screen when the view is first displayed. I'd like to know how to have the search bar be hidden by default but still s...

Generating forms from models (a la django ModelForms) in Objective-C

I'm taking the plunge into iPhone development after about two years working with django. As I've done tutorials and read documentation, one of the things that strikes me as inconvenient about the various libraries used in iPhone development is the amount of repetition required when creating user input forms for data models. I know of...

Audio recording error kAudioQueueErr_CannotStart on iPhone OS 3.0

I'm working on a couple different iphone apps that both record and play sounds concurrently. Think multitrack mixing... play one sound a save it then listen to that sound while recording the next sound to another file. My mechanism for this has been to start up two different audio queues, one for recording, and one for playing. This w...

How to implement/augment Core-Data relationship getter/setter?

I have a fairly involved managed data model which has a central object with many relationships which depend on the values of various attributes. I am importing the initial data into the model using sets of plists, each plist specifying attributes for an entity class and then filling in the relationships based on those attributes. I wan...

How to convert time to the timezone of the iphone device?

I have a time in EST timezone, it is done using the NOW() function on the mysql server. Because my server is located in EST, the time stored is in EST. When I retrieve it from my app on the iPhone, I need to display it in the correct time zone of the user. How do I do that? ...

How to REVERSE rotation with glRotatef() in iPhone OpenGL ES?

I am trying to rotate a 3D model in both forward (counter-clockwise) and reverse (clockwise) rotation directions in orthographic mode. glRotatef() automatically executes a forward rotation but I cannot get a reverse rotation. I have tried the following methods and none of them give me results: //(Provide a negative rotation angle of ...

Beginning OS X & iPhone Development: Reference texts

My programming experience is limited to xhtml, css, php, sql and some javascript. The books I have are: Programming in Objective-C 2nd Edition Beginning iPhone Development Cocoa(R) Programming for Mac(R) OS X (Paperback) Is there anything else I will need to get started on my journey into iPhone/OS X development? ...

How can i get next date using NSDate?

Hi Guys, How can i get next date using NSDate. Please send me the solution. regards Jayaraj ...

Book/documentation on iPhone SDK with little emphasis on InterfaceBuilder

I have been doing some iPhone app development for the past few weeks. I am not a big fan of the interface builder - I just don't like tools. I prefer writing code for what the IB can accomplish. I have been referring to various books, however most use Interface Builder to build apps. Can anyone recommend a good book which has little em...

How to draw a solid circle with cocos2d for iPhone

Is it possible to draw a filled circle with cocos2d ? An outlined circle can be done using the drawCircle() function, but is there a way to fill it in a certain color? Perhaps by using pure OpenGL? ...

Unable to read symbols error

I get these errors when I build and run for the device. Should I be worried about them? The app runs fine. run Running… [Switching to thread 10755] [Switching to thread 10755] warning: Couldn't raise load state for requested shlib: "libobjc.A.dylib" for breakpoint 1. (gdb) continue warning: Unable to read symbols for ""/Users/tim/Code/...

iPhone - increase UIImageView size and keep the image size fixed

Hi I have a custom UIImageView class which I use to handle multi-touch events on the UIImageView. When the user touch begins, I want to increase the UIImageView's frame but keep the UIImage size fixed. I tried changing the UIImageView's frame and then calling the drawInRect: method of UIImage to keep the UIImage's size fixed. But this ...

How to access system time finer than 1 second on the iPhone

The system time function time(0) gives me a resolution of 1 second, right? Is there a finer-grained function? I'm using it to determine the time interval between two events. A line of code would help me greatly. It makes it easier to have something concrete to hang the concept on when I look in the official documentation. ...

How do i remove "This view overlaps one of it's siblings" warning?

Hi guys, I'm getting the following warning: This view overlaps one of it's siblings How do i remove this warning? regards Jayaraj ...