Hi,
I'm using Amazon's simpledb in my app. When parsing xml it gives an error with the code 5.
ie. NSXMLParserErrorDomain error 5.
Sometimes it works fine and without any significant change in the navigation is gives that error. Again it works fine when i restart the app several times without doing any changes to the code or navigation...
-(IBAction)ButtonPressed:(id)sender
{
const char *sql = "SELECT AccessCode FROM UserAccess";
NSString *sqlns;
sqlns = [NSString stringWithUTF8String:sql];
if([Password.text isEqual:sqlns])
{
NSLog(@"Correct");
}
else {
NSLog(@"Wrong");
...
I have a requirement where i have a textfield in a view. When i want to open the view by switching the tab(TabBased Application),first time when the view is loaded the keyboard appears because i loadview method is called. But when i switch to tab2 and again switch to tab1 again, load view is not called. I want the keyboard to appear ever...
Is it possible to open a PDF from a website in Safari in order to save it to local disk?
...
Hello guys!
In the documentation I have read that I don't need to release the NSOperation object because it will be released by the NSOperationQueue, but the instruments gives me a memory leak if I don't release it in some cases, in other cases it crashes if I release. What's the problem what do you think?
...
I have two files independant on each other.
Let's just call it Class1 and Class2.
In Class1, I need Class2, and in Class2 I need Class1.
I have a prefix file where I include all my files, and I get some syntax errors because I do
#import "Class1.h"
#import "Class2.h"
How would I define both of them so they can use each other?
What...
how can hide particular button which is created from UIBarButtonItem in iphone ?
...
I a trying to pass data thru userInfo for an NSTimer call. What is the best way to do this? I am trying to use an NSDictionary, this is simple enough when I have objective c objects, but what about other data? I want to do something like this, which doesn't work as is:
- (void) play:(SystemSoundID)sound target:(id)target callbackSelect...
I have a class called MainGame, which is defined like this in my .h:
@interface MainGame : Renderer <UIAccelerometerDelegate>
Then later in my .m I have this:
- (void) accelerometer: (UIAccelerometer *)accelerometer didAccelerate: (UIAcceleration *)acceleration {
// here I would read values like accelerometer.x
NSLog(@"accele...
Hi guys,
I have an object with different values that is name,nameid, lifebeging,lifeEndiging .... etc,
for loop
{
// here i will get name, ids, other value for each object
Search *Obj=[artistslist objectAtIndex:i];
}
0 obj.name= //string values1 get from parser
1 obj.name= //string values1
2 obj.name= //string values1
3 ...
Command/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 iphone
Can anyone slove my problem
is dis related to .mm file
...
Hello guys!
Mayb do you know a good open-source pdf renderer for objective-c? :)
...
So I'm trying to register for the MPMoviePlayerDidExitFullscreenNotification notification in my universal app (iPhone and iPad).
Problem is, OS 3.1.3 doesn't support this notification, and just crashes.
I've tried version checking, like so:
if ([MPMoviePlayerController instancesRespondToSelector:@selector(setShouldAutoplay:)])
{//Chec...
self.navigationItem.rightBarButtonItem.enabled = FALSE;
[activityIndicator startAnimating];
//[myview sendSubviewToBack:self.view];
//self.view.hidden= TRUE;
myview.hidden= FALSE;
activityIndicator.hidden= FALSE;
dt = [[DateTime alloc] init];
This is my method in this when user click on leftbar button of navigation this method fires he...
I'm upgrading iPhone app and so far everything is going well (managed to resize screen display for most forms). However, I can't solve one problem - the touch is detected only in old, 320x480 region. Any ideas how can I solve that?
Thanks
EDIT: Here are the results when code for fetching superview bounds executes:
CGFloat wdth = self...
I have a UIButton in my MainWindow.xib
When I tap the button, I want to swap the view. How do I do that?
I also want to transfer some data between the views (such as color preference and a string)
ANy sample code OR links to where I can find my answer would be very helpful.
...
Hi, I have created a Picker view in objective C and populated it with an NSArray and that all works fine, it compiles and shows on screen but the picker doesn't do anything. I'd like to turn as the user drags their finger across like you'd expect but it doesn't react in anyway.
'lil Help?
The code I used for the picker comes from "Begi...
I am working on a universal app that should be able to run on iPad and iPhone. The Apple iPad docs say to use UI_USER_INTERFACE_IDIOM() to check if I am running on iPad or iPhone, but our iPhone is 3.1.2 and will not have UI_USER_INTERFACE_IDIOM() defined. As such, this code breaks:
//iPhone should not be flipped upside down. iPad can h...
I'm trying to figure out the best way to do hit detection on a CALayer containing a non-rectangular path. I am aware of the CGContextPathContainsPoint function but im not sure how to get a reference to the appropriate CGContextRef when I need to do hit detection (like mouse down). Is it safe to retain a reference to the CGContextRef that...
In Xcode is it possible to build a clean version of my project and remove any saved property lists associated with it?
I'm refactoring my code constantly and the old property list that gets saved is causing my app to crash because the data has become old and rotten.
...