I have converted my project to support iPad (universal). I have changed it so the MainWindow loads MainWindow-iPad (it does), and that in turn calls it's sub-view controller (it does as well).
In my sub-view controllers code, it instantiates other view controllers and loads them. But only the iPhone version is loading.
So my question...
Hi guys,
I want to make an iPhone app which communicates with iChat on Mac OS X via Bonjour. I have already known how to create a service using NSNetService, but how can I communicate with iChat? What service type do I need?
Any help would be appreciated. Thanks in advance!
...
i was told to do the following to refresh the table
- (void)viewWillAppear:(BOOL)aminated {
[super viewWillAppear:animated];
[tableView reloadData];
}
however when i after synthesizing tableView and pluging this in still it doesnt reload on page view. Im not sure why it only refreshes when i put it under didselectrowatindexpat...
-(void)LoadOriginalListFromFile
{
NSMutableArray *temp;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *path = [documentsDirectory stringByAppendingPathComponent:@"shopes.dat"];
//2.check if file exists
NSFileManager *fi...
Hello everyone,
I have a strange problem with the UINavigationController.
I wrote an App to display data in three levels. (RootView: Select Data I, Second View: Select Data II, Third View: Display Data). This works great, no problems.
The problem appears when a PushMessage arrives: In this case I'm trying to create a viewController St...
I have a map marker to which I've added an event listener. when I click on the marker, I can get it to NSLog out a message... yet when I then click on the map, it does the same. I don't know if this is usual behaviour? In the end, I am trying to get a popup viewcontroller appearing - but that's been put on hold until this works.
So... ...
I'm attempting to add view controllers to my tabbarcontroller, and then make the first one the selected one using the following code:
[self setViewControllers:[NSArray arrayWithObjects:self.detailController,self.mapController,nil] animated:NO];
[self setSelectedIndex:0];
When this code is called, the correct view controllers/tabs are ...
If I have entities set up for Parent - Child - Grandchild and one to many relations between them I know I can then get all the Child entities for a parent or all the Grandchild Entities for a Child.
Is it possible to run a fetch that will get all the Granchild entities for a given Parent?
Thanks for any help!
...
At the bottom bar of around 60 pixels in height and covering the whole width of the screen I have two UIButtons. I and many other people have tested the app on several iPhones ranging from OS3.0 to 4.0 -- works fine, buttons respond to touch. Recently I purchased an iPod Touch from ebay specifically for Testing. The device came with OS3....
I'm using openURL to send an email w/some links. The function looks like this:
//
+ (void) sendEmail:(NSString *) subject withBody:(NSString *)body {
NSString *mailString = [NSString stringWithFormat:@"mailto:?@&subject=%@&body=%@",
[subject stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding],
[body stringBy...
I am using local notifications in a app I'm making.
I use this:
Class myClass = NSClassFromString(@"UILocalNotification");
if (myClass) {
//Local Notification code
}
To avoid using UILocalNotifications when not supported.
But my app crashes on launch with this error code:
warning: Unable to read symbols for
"/Library/MobileSu...
Hi,
I have an UITableView which includes a list of UITableViewCells. And I set the heights of UITableViewCells in method (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath.
However, I need to increase the height of UITableViewCell when it is selected. For example, the height of UITableViewCell ...
Is it possible to intercept an SMS coming from a certain number and direct it to a certain application on the iPhone/Android where it will be processed?
Thanks.
...
From a related thread, how should I have known the "mailString" below was already autoreleased?
//
+ (void) sendEmail:(NSString *) subject withBody:(NSString *)body {
NSString *mailString = [NSString stringWithFormat:@"mailto:?@&subject=%@&body=%@",
[subject stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding],
...
I have several custom UIMenuItems that do things with a selection in a UIWebView. After the action has been run on that selection I want to hide the selection handles just as copy: does.
I have tried using window.getSelection().removeAllRanges(); and that works in that window.getSelection() no longer returns anything but the text selec...
As soon as I add a UIImagePickerController sub view to my view the status bar disappears and I can't get it back. Is there any way to keep the status bar visible?
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self.view addSubview:imageP...
As os 3.2, we are allowed to change the editing menu. This is what the documentation states:
"You may create your own menu items, each with its own title and action selector, and add them to the editing menu through this property. Custom items appear in the menu after any system menu items."
I would like to remove those 'system items'...
Hi, is there an OR function in Objective-C?
for example:
if(string1 == string2 || string3 == string 4)
|| doesnt seems to work.
Thanks.
...
Hi,
I read both iPhone and Google Map for iPhone EULA and want to implement a static driving direction map in my iPhone application (native).
I am finding a simple way to get route data and display with build-in route display feature in iOS 4 SDK' Mapkit.
Is there any programmer implement a feature like this with Google Map and Bing M...
Continuing some helpful StackOverflow debugging, I have a zombie I need to track down:
2010-08-22 10:18:51.111 AppName[106:307] *** -[CFString release]: message sent to deallocated instance 0x19f3b0
How would one find the variable name or whathaveyou for the 0x19f3b0 Zombie?
...