Good morning every one,
I have donloaded an XML File to my documents folder but how can I determinate the path to the file so I can parse it?!?
I tryed it with
NSString *rootPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString *localPath = [rootPath stringByAppendingPathCo...
I am considering caching an entire web page locally on the iphone, i.e. I want to provide a url and have the device download all the assets automatically.
ASIHTTPRequest offers a cache, but as far as I understand it will only cache whatever url you feed it. I wonder if anyone has implemented a caching mechanism that will parse the downl...
I've stumbled across a problem way beyond my area of expertise, and I don't have a mentor to turn to for help with this.
I have a receipt printer I need to interface with through an iOS app. The printer is located on the same network as the device(s), so I can address it through supported "Line Mode commands"
What I'd like to do is kee...
In an iPad app im using a thirdParty cpp file that acts as a controller for some UI functionality; its wired up with IB and a @class definition is all i need.
However now I'm trying to set a delegate on the cpp file and therefore have to include it in the implementation of my viewController.
including the cpp header in my implementatio...
Hi,
Is there any limitation for a file size for an application when submitting to the app store.
Regards,
Dilshan
...
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
...
Hi,
I have created a custom bar button item in code.
UIButton* backButton = [UIButton buttonWithType:102]; // left-pointing shape!
[backButton addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
[backButton setTitle:@"Custom Item" forState:UIControlStateNormal];
// create button item -- possibl...
I want to build an app for the Mac / iPad that allows to assign semantic roles to sub phrases of every sentence of a text. So basically I have a text with n sentences and for every sentence the user selects one or multiple words and assigns it a semantic role (e.g. agent or patient). Then, I want the according phrases to be highlighted i...
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...
Hi,
I'm trying to change the font of a lable in a UIView
for my iPhone App.
The change of the 'Font' in the Attribute Inspector does not have any effect
on the font.
Any idea?
Thanks, Stefan
...
Here's what I want to do:
NSRange r = NSMakeRange(0,5);
id a = [NSMutableArray a];
[a addObject: r]; // but NSRange is not a NSObject *
With a boolean, I'd use code like this:
[a addObject: [NSNumber numberWithBool: YES]];
or with an integer:
[a addObject: [NSNumber numberWithInteger: 3]];
So what's the equivalent with a NSRange...
I was expecting this to work, only thinking it would fail if I had locally declared another variable called "tableView"
NSLog(@"X: %@", [tableView delegate]); // Fails: tableView undeclared
.
NSLog(@"X: %@", [[self tableView] delegate]); // Works:
Is this because you need self to refer to items on the actual object?
NB: this code ...
I have an animation as my image in one of my tableview's cells. When it is clicked, it turns the default blue and the image disappears! The navigation loads the new view, and when it I go back to the first view, hoping my animation returns, alas, there is no image :(. I don't do anything in the didSelectRowAtIndexPath function besides ...
I'm using a UIDatePicker in UIDatePickerModeCountDownTimer mode which lets the user select hours and minutes, but it won't let the user select zero hours and zero minutes.
If the hours are set to zero and the user tries to pick zero minutes, it automatically jumps to 01.
I've researched the docs and nothing seems to allow me to do that,...
Starting off with a default "View based" application I create a new view (ViewToDisplay, class that inherits from UIView) and inside this view I create a layer (LayerToDisplay). The view draws something around the perimeter of the frame, and so does the layer but this time with dotted lines. This is to show / prove that the layer covers ...
Folks,
coming from the Java/Swing world, I am sometimes puzzled by the UI programming on the iPhone. I've spent the last hours with Googling for information but it seems that I asked the wrong questions by thinking too much in Java. Could you please point me to resources to get more familiar with the GUI concepts to be able to achive th...
I am using code from http://osmorphis.blogspot.com/2009/05/multiple-buttons-on-navigation-bar.html to implement multiple buttons in the navigation bar.
The huge problem I have now is that this construction "leaks" into the main window. By this I mean that if I press (up to about 15px) below the navigation bar the buttons still respond....
I often want to execute some code a few microseconds in the future. Right now, I solve it like this:
- (void)someMethod
{
// some code
}
And this:
[self performSelector:@selector(someMethod) withObject:nil afterDelay:0.1];
It works, but I have to create a new method every time. Is it possible to use blocks instead of this? Basi...
I'm working on an an app that updates both a UITableView and a UIScrollView. I like how UITableView updating works. As I add, remove, or update items, I call insertRowsAtIndexPaths:withRowAnimation:, reloadRowsAtIndexPaths:withRowAnimation:, and deleteRowsAtIndexPaths:withRowAnimation: as appropriate. However, updating the UIScrollView h...
When I 'Build and Analyze" this code in Xcode, I get a warning that I don't understand. Here's the method with the problem:
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
UITouch * touch = [touches anyObject];
CGPoint location = [touch locationInView:self];
CGPoint relativePosition = CGPointMake...