Hey guys,
This time, I was wondering when I was supposed to set my properties ...
I got a nav bar which I use to push a new controller (controlling a Web View) :
NewsViewController *webViewController = [[NewsViewController alloc] init]; // I create my controller
webViewController.urlText = @"http://www.google.fr"; // I set the prope...
Hi,
my if clause always runs into the else statement? Whats the fault?
NSLog([[category objectForKey:@"id"] stringValue]); // Traces 15
if ([[category objectForKey:@"id"] stringValue] == "15") {
result.isExternal = YES;
} else {
result.isExternal = NO;
}
thanks for helping
...
I'm creating a button for each cell row in a tableview. The button acts as switch to add the selected row as 'favorite' in NSUserDefaults. My problem is that whenever I press this button, a new one get drawn on top of the old one. How do I release/reuse it right?
This is what my cellForRowAtIndexPath method looks like:
- (UITableViewCel...
I'm trying to get a float to show up with the decimal point in my sqlite table. I've included the code below for how it shoes up in the game which is all fine. As well as for what happens at the end of a level. And how it gets updated to the sqlite table. It shoes up fine as a decimal during the game, but it gets recorded to the tabl...
Hi, I'm currently developing an iPhone app and so far things have worked out smoothly. However, tonight I've been getting some weird behavior from Xcode when choosing 'Build and Debug', especially when using the simulator. In simulator it seems I'm getting two builds of my app installed, there's two identical icons on the homescreen of t...
Im new to Obj-C, and I have a class, with a variable of a class in it, and I have a function not in a class that I need to call a function of the variable of the first one from, when the first class calls the function. Thats written all wrong, but I dont know the right words so:
Root.h:
@interface Root {
UITableView *tableview;
}
...
I am writing an application that initially will be developed as web (probably Silverlight) and Android application. I found on Android website that SQLite is supported, but I plan to release the same app for Windows Mobile, Palm Web OS and iPhone as well.
Could you please advice me on which database would be the best to work with for al...
I'm considering using Go as a low-level, performant language alternative to C/Objective-C to implement a library for an iPhone App. Could either of the Go compilers generate a library that could be linked into a native iPhone app with the Go runtime, etc.? Is there an ARM port for Go or does gccgo/gcc support this? I imagine that since g...
This code works fine until I exit the view and try to come back into it. If I do this, the stop button no longer works. How do I get it to still work after leaving the view?
-(IBAction)musiconButtonClicked:(id)sender{
NSString *path = [[NSBundle mainBundle] pathForResource:@"NextRevIt" ofType:@"mp3"];
self.audioPlayer = [[AVA...
I seem to have a fundamental gap in my memory management understanding. The code below is located within a singleton that gets called multiple times within my app to parse data that is downloaded from the web. For each article I download, I allocate a mutable string, then do tons of parsing, then write the file to the file system for la...
I'm creating an iPhone app that will pull data down from a Web API, including email addresses. I'd like to display an image associated with each email address in table cells, so I'm searching the Address Book for images and falling back on a default if the email address isn't in the book. This works great, but I have a few concerns:
Pe...
Hi,
im want use this Class http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone to Upload an image from my iPhone App to my Webserver.
Ive Copyd the header and main file and added "#import "EPUploader.m"" to my ViewControler where i call the EPUploader Method.
Error Message is:
Ld build/Relea...
Hi all,
I am using an iPod to test an app. The device is all set up with the right provisioning profiles, etc-- that's not really the issue.
But every time I start the app from Xcode on the device, I get the "A signed resource has been added, modified, or deleted." error from the Organizer window.
Wait, I know, you think it's a provis...
I've got a UIButton that, when selected, shouldn't change state when being touched.
The default behaviour is for it to be in UIControlStateHighlighted while being touched, and this is making me angry.
Suggestions?
...
I've written an iPhone program which includes a library. The library uses some C++. The program runs fine in the simulator as long as debugger is turned off.
GDB immediately complains with the following
/SourceCache/gdb/gdb-962/src/gdb/dwarf2read.c:7593: internal-error: could not find partial DIE in cache
A problem internal to GDB ha...
I am looking for a way to have a custom navigation bar and need to have a custom navigation bar background to achieve this. I was looking around for how to do this, but could not find a solution. If anyone has the solution, help is much appreciated.
...
When the user start the app I want it show the stockholm.xib
and It does here:
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
NSUserDefaults *startPage =[NSUserDefaults standardUserDefaults];
NSString *page =[startPage stringForKey:@"page"];
NSLog(page);
if(page==nil)
{
//Do nothin...
Is there any resource for an iPhone developer who wants bright red and green buttons in their app? I mean, as in pre-cut buttons? The closest I've found are the Photoshop templates and those are a bit difficult to cut out just right.
Thanks.
...
Hi, I have the following method which queries a sqlite db table on the iPhone
it pulls about 6,000 rows from the table and then cycles through those creating 6,000 objects based on the information and stuffing them into an array.
The while loop is somewhat slow (takes ~ 10 seconds to iterate through them on my device)
Any thoughts on ho...
I'd like to create a simple object that I can access like this:
myobject.floatValue1 = 1.0;
myobject.floatValue2 = 2.0;
It shouldn't have anymore than the two properties. Is it possible to create an enum or typedef with such a simple structure. Or must I create a class?
...