I'm making a relatively simple OpenGL ES based iPhone game. While testing on the iPhone 4 I've noticed that multitasking doesn't "work". Specifically the app is automatically terminated when it's put into the background state (I think this is due to making OpenGL calls in the background and/or not releasing some resources). Since the ...
I have a view that I am presenting modally. For some reason it animates very slowly.
[self.parentViewController.tabBarController presentModalViewController:browser animated:TRUE];
I'm not sure why? I have even tried:
[self presentModalViewController:browser animated:TRUE];
UPDATE:
The UITableViewController that is presenting it, is d...
Hi,
I want to build an iPhone app which has the option to make calls over SIP (VoIP) but at this moment I have no idea how to start.
Does anyone have some information about this topic, or maybe a demo project which I can use to implement the SIP functionality?
Thanks in advance!
...
Hi,
i'm going to make a PDF reader and i'm trying two possible solutions:
UIWebView
CGPDFDocumentRef
The first one is very simple, but is slower than the second one.
For the second one, i found a tutorial and i can view a pdf and i can zoom it with the two fingers movement. But at the moment i can't do 2 things :
1) View the PDF in ...
Hello,
I've been working on a project for awhile and it's got a built-in HTTP server which runs on port 8080. The users are told to access the device via e.g. http://192.168.1.4:8080/ -- works great. Recently I realized that applications CAN use port 80 to remove the need for ":8080", though if I try to set the port to 80 I get a crash ...
I'm creating a magazine type application for the iPad and want to make sure I am using the best approach. I want to have a global custom header and footer that is always present regardless of what view is displayed. Right now I am thinking I will have my main view with three subviews: header, footer, and body. Because of the graphical na...
I'm building a custom view inside of Interface Builder that has buttons with image backgrounds. The buttons extend to each side of the screen, so I'll need two images for each layout (Portrait and Landscape). As such, do I need to have two different NIB files for each layout (Portrait and Landscape), or is there a way to just use one N...
I have a universal iOS app with a custom view that has three buttons, each with an image background that extends to the sides of the screen for each orientation (portrait and landscape). The heights of each of the three buttons are the same and all three buttons take up the whole screen. So it looks simliar to this layout (image on the...
NSArray chemConstantArray = [[NSArray alloc] initWithObjects:0.0021400, 0.0012840, 0.0010700, nil];
Gives me four errors:
Incompatible type for argument 1 of 'initWithObjects:'
Invalid initializer
Statically allocated instance of Objective-C class 'NSArray' x 2
Which makes sense, as floats are not objects, but how can I make an arr...
Edit: My bad, I meant objective-c, not c#. Some reason I got it into my head it was c# the iphone used. So the answers for c# were great, thanks, but theyre a bit irrelevant, sorry about that.
I've had a look but can't find anything that answers this, though a few have shortened the question by answering parts of it. Between a small gro...
Hi everyone,
I'm building an iPhone application, and I want to run a custom built-on-the-fly Mac OS X command-line utility during the build phase of the iPhone target. I set up the command-line utility as a dependent target of the iPhone target, but it won’t build, telling me:
target specifies product type ‘com.apple.product-type.to...
Hi Forum
I'm a little confused about objc and allocating/releasing objects.
If I do this:
NSString *myString;
if([someString isEqualToString: @"test1"]){
myString = @"got 1";
}else{
myString = @"got 2";
}
Do I have to release myString after that?
And the same with self-defined objects:
myOwnObject *someObject = [someArray...
I'd like to use the UIDocumentInteractionController (iOS 3.2 or higher) to display linked online files in a modal view with the option to open in external apps on the device.
I've figured out the coding to make this happen, but I'm being stymied by Google's links that do not disclose the direct file URL or file type, thus making it impo...
My iPad app uses an external "device" that acts as a hardware keyboard. But, at some point in the settings, I need to input text and I can't use the "device" ("device" is not a keyboard).
So, is there any way to force pop the soft keyboard even thought I have a hardware keyboard connected?
...
I have the following code:
CATextLayer *test = [CATextLayer layer];
test.string = summary;
test.wrapped = YES;
//test.truncationMode = kCATruncationEnd;
//test.alignmentMode = kCAAlignmentJustified;
test.frame = s;
[test drawInContext:context];
I import the framework and link against it, however when it links I get the following erro...
What are the different ways to change the playback speed of audio on the iPhone, when using Audio Units? What are the advantages / disadvantages of each solution?
I have a mixer unit and an IO unit. Do I need to add another unit (eg. converter unit)? What audio unit parameters should I set, on which (input or output) bus on which audio ...
I think it's GREAT that Openfeint has offered Multiplayer service now.
But their documentation is really lacking.
Does anyone know of any simple, step - by - step tutorial on how to use it,
and what is needed to add to your app?
I saw the article the developer wrote about adding it to his Artifice app,
but without knowing what was there...
Hello,
I've been trying to update an image that is packaged with my app, but the app refuses to load the new file.
I originally had a png called "board.png". I then created a new file which is a higher resolution copy of the original. I deleted "board.png" from the Resources group in XCode and added the new image under the same name. W...
My tab bar has ten tabs. Six of these are therefore shoved into the "More" tab. Several of them do not have UINavigationControllers. I.e, the tab is controlled by a UIViewController subclass that is not a navigation controller.
When the user selects one of these, the appropriate view controller come sup, with a UINavigationBar at the...
Hi
I have an array filled with instances of a custom class which contains two String properties, firstname and lastname. Both have a getter method which is equal to the name of the property itself. There is also a method for retrieving the Full name of a person called "getFullName". Consider the example below.
CustomClass *person = [[...