- (void)parserDidStartDocument:(NSXMLParser *)parser
{
nestedChannels = [ [ NSMutableArray alloc ] init ];
....
}
- (void)parser:(NSXMLParser *)parser didStartElement....
{
Channel *channel = [ [ Channel alloc ] init ];
[ nestedChannels addObject:channel ];
....
}
- (void)parser:(NSXMLParser *)parser foundCharacters...
Hey,
We have just had our iPhone Application approved. Review App Store is set to USA.
When we uploaded the app we first made the availability date the 14th of Jan. Seeing is is now live, we have changed the availability date to the 12th.
The app still isn't able to be viewed or downloaded though.
How long does it take for the avail...
I'm working on an iPhone app that, at a certain point, will try to send an email message. If the user has an email set up, great, if not, I need to change some actions accordingly. My question is how do I check to see if the user's iPhone has an email account setup? I've looked everywhere but I can't seem to find an answer.
I'm using MF...
Hi,
since yesterday I've got a bug in my application and I don't get where it is. Actually I am pretty sure that I did not change anything and that it worked perfectly yesterday.
I do not intent to publish all of the code but I can post my first ViewController, if you want.
The problem occurs in both ViewControllers. I use the MGTwitt...
I'm looking for a way to find out how much time is spent in each of my program's source line when running on the iPhone.Similar to what Shark can provide on the method/function level. Is this possible with the standard tools? Are there 3rd party tools that can provide this sort of granularity?
It wouldn't be necessary for profiling data...
How would one implement a search field like the one used on the iPhone Mail application. When you attempt to search it shows up 4 buttons under the search bar with the fields you can search. The search bar actually moves up to cover the navigation bar and exposes those buttons.
I'd like to do something similar in my application where yo...
I have more than 1 Mac, and I would like to do development on all of them. I know I need to sync my phone on each machine, but that is the least of my problems. It looks like I am not able to run apps on my phone except apps that are developed on one of them.
Is there anyway (sensible) to be able to use both my MacPro and MacBook Pro ...
I have managed to resize the Textfield of the UISearchBar thanks to this question: Changing the size of the UISearchBar TextField according to the subclassing approach of timmytheRock.
The problem is, when the user selected the textfield, I would like to have the cancel button correctly added (i.e. animated and in the right position). R...
I have a UIText View that I need to populate with a link that can be gained from currentItem.link. But I can't seem to work out how to populate the text view with the link.
I'm assuming you have to load the view with some sort of IBAction?
...
Hi there, i have an app that uses a navbar. What i want to acomplish is make it transparent when i push in the last view from the nav sequence, and make it opaque when i click the back button on the nav
i tried with on dealoc, but it doesn't work. My view is an UIScrollView not an UiView, but i guess that makes no difference.
As i see ...
Has anyone come across this problem when building with cocos2d (OpenGL library for iPhone 2D games)?
"glui/GL/glui.h" file is not found
gluOrtho2D was not declared
GL_COLOR_BUFFER_BIT was not declared.
There seems to be very little info on GLUI for iPhone on the web. I am new to OpenGL, so appreciate the help! I have included Open...
I have a C# WPF app that allows users to import files by dragging them in from Windows Explorer and dropping them on the main app window.
It works fine when dragging files from physical disks, but when dragging files from a connected device like an iPhone or camera connected via USB, I don't recognise any of the data formats returned by...
Hello,
I want to have a constant in my project to change between Lite and Pro version. I don't think it is the best way to do it, but I am trying to:
add a constant in my app delegate
#define BUILD_PRO 1 //0 => LITE, 1 => PRO
when I need it I import the appDelegate and test it:
#import "myAppDelegate.h"
then later
#if (BUILD_PRO...
Hey all,
I'm trying to make a MJPEG viewer in Objective C but I'm having a bunch of issues with it.
First off, I'm using AsyncSocket(http://code.google.com/p/cocoaasyncsocket/) which lets me connect to the host.
Here's what I got so far
NSLog(@"Ready");
asyncSocket = [[AsyncSocket alloc] initWithDelegate:self];
//http://kamera5.vfp....
I'm attempting everal methods trying to enable/disable Wi-Fi (toggle). Here are some things I am trying:
//Enable
WiFiManagerClientEnable(WiFiManagerClientCreate(kCFAllocatorDefault, 0));
//Disable
WiFiManagerClientDisable(WiFiManagerClientCreate(kCFAllocatorDefault, 0));
-and-
//Enable
WiFiManagerClientSetProperty(WiFiManagerClient...
Hello, surely, there is a shorter way to do this?
NSString *filePathA = [[NSBundle mainBundle] pathForResource:@"A" ofType:@"txt"];
NSString *myTextA= [NSString stringWithContentsOfFile:filePathA encoding:NSUTF8StringEncoding error:nil];
NSArray *arrayStructuresA = [myTextA componentsSeparatedByString:@"-"];
NSString *filePathB = [[...
I am using an XMLParser to parse some XML data, which uses an NSMutableString *resultString to store the tag characters. At every (- parser: didStarElement...) method I allocate and init the resultString-ivar.
- (void)parser: (NSXMLParser *)parser didStartElement: (NSString *)elementName namespaceURI: (NSString *)namespaceURI qualified...
So... I've written my first iPhone game, that consists of maybe 50 puzzles.
At the start of each puzzle I create some strings, various mutable arrays of pointers, some of which point to runtime created subviews. All retained variables are declared as various class properties. Then at the end of the puzzle I remove the subviews, release...
When I push a new ViewController onto a navigation controller stack the "back" button is the Title of the previous controller.
How can I change the text in the back button to "Back" instead of the default name-of-last-controller?
...
I'm fairly new to UI programming on the Mac and iPhone, and I've run across something that somewhat puzzles me.
A UIViewController has 3 methods that involve the initialization of it and its view:
init (and init-like methods)
loadView
viewDidLoad (delegate method)
I'd expect these to occur in the order above. First UIViewController ...