I have a localized AboutApp.xib file with English and es localized versions, but it always loads the English version even when I have the phone's language set to Spanish. How do I get it to load the Spanish version based on the language?
// Make sure AboutApp View is allocated
if (self.aboutAppController == nil) {
AboutApp* aboutAp...
Hello,
I have an objc app that has the class Foobar and I want to make a dylib that will be loaded into that app on start and extends the class Foobar with a few methods.
Unfortunately I cannot build the library, I get the following linker error:
"_OBJC_CLASS_$_Foobar", referenced from:
__objc_const@0 in Foobar+MyStuff.o
...
Do you only postfix the method name with a : if you are calling a foreign object?
For some reason
[self performSelector:@selector(myMethod:) withObject:nil afterDelay:5];
Does not work but
[self performSelector:@selector(myMethod) withObject:nil afterDelay:5];
Does!
EDIT:
Declared in the implementation of a class but not the int...
For example, I have a blackberry or iphone, some applications on it generated some binary and text information, I want to sync those data back to my home web server with fixed IP. What is the best way?
web service, can I use HTTP post or put to do it?
Thanks.
...
hi
i have a zip file in my document directory and i want to unzip that file using objective c code in xcode how can we do that ? is that possible to do that
thanks
balraj
...
Hi,
I have an app which consists multiple tabs managed by the class derived from UITabBarController (the only reason I subclassed UITabBarConteroller is to handle shake event for all views). 3 views are from subclassed UIViewContentroller class, one view is UINavigationController which shows a table.
In every single controller I have, in...
hi all
i have an application in which we have .mm extension files but when i try to compile it with the GCC 4.0 compiler it thorows some exceptions of some references that is taken by some variable from any where in the objective c ++ library
than how can i set my xcode to make the compile that file
please provide the whole project...
I have a UIViewController subclass that I am trying to have handle the shake event when its view is up.
Here are the relevant methods I've implemented:
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[self becomeFirstResponder];
}
- (void)viewDidDisappear:(BOOL)animated {
[self resignFirstResponder...
Hi guys,
Simple question, as I am coming from another programming language. In Objective-C, lets say in a controller class I want to separate certain code into its own method, how do I call that method let's say, from viewLoad. As an example, let's say I create a method:
(void)checkIfInputCorrect
{
NSLog(@"text");
}
Now, i wanted to...
I just uploaded my iPhone application into App Store. It is in Review process. By the way, when I see the details, it is showing binary as "Binary Type: Non-Fat Binary".
I just want to know: why is it showing like this? What does they (Apple) mean that it is a Non-fat binary?
...
Hi,
Is there a way to change background color for UIWebView? None of the colors set in IB effect UIWebView behavior: before acctual content is loaded it shows as up as white (causing a white flash between the moment it is loaded and content is rendered).
Setting background color programmatically does not do anything either. Here is cod...
Any idea about how to spin image clockwise/anticlockwise on touch.
...
I ran into a strange issue with my indexed tableview's section index titles. The index titles returned is correct (A - Z) as outputted by the debugging code below but the displayed index titles on the right side of the table is separated with • instead. So instead of A B C D... I get A • C • E •... instead.
Any idea what's causing thi...
i have code in my view controller in view did load like this..but the UIBarButtonItem is not in right side of tool bar .it is in left side .any help?how to give title to toolbar also?
UIToolbar *toolbar = [UIToolbar new];
toolbar.barStyle = UIBarStyleBlackTranslucent;
// create a bordered style button with custom title
UIBarButtonIt...
Hi, I am trying to draw a map annotation in my app - very much like MapKit's MKAnnotationView, but without the mapkit.
I have a problem with the ordering of the path for the view outline that I cant figure out.
Image of results:
http://img504.imageshack.us/img504/5458/screenshot20091010at703.png
Code:
CGFloat minx = CGRectGetMinX(cu...
i want to run my timer in background even when app is not running.because i want to get gps cordinate of the user after some time interval.waht is the method to do this?
...
Hi everybody
I'm facing a problem I cannot resolve...
I have a grouped table whose section header and section footer get displayed correctly upon launch thanks to
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
and
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(N...
Hello all iPhone developers,
I am developing an iPhone application.
In this application i want to find nearest places related to current CLLocation that I am getting from the iPhone device.
I have currently a database in different server .
I am accessing it via .NET web service.
In the database for testing purpose i have created so...
here is my code....?how to integrate UINavigation bar with UIBarbuttonitem?
UINavigationBar *nav= [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, 320, 60)];
nav.backgroundColor = [UIColor whitecolor];
//nav.tintColor = [UIColor darkGrayColor];
[self.view addSubview:nav];
[nav release];
...
MFMailComposeViewController displaying only bar at the top of the screen with the cancel and send buttons. Code for landscape:
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@"In app email..."];
[controller setMessageBody:@"...Hi, all......