I'm starting a new iPhone project and I want to get started off on the right foot. It's going to be talking to a Ruby on Rails server for some basic CRUD operations. I'd like to avoid dealing with URLs, HTTP requests and responses, and such. Are there any libraries out there that make this easier?
...
If the website doesn't require authentication, my code works fine, if it does, it errors with EXC_BAD_ACCESS right after printing "credential created". I'm not releasing anything, and this code is copied straight from the documentation - any idea what's wrong?
- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationCha...
Hi,
I try to bind a NSString value into my SQL query but its not working, and I don't know what I'm doing wrong.
Here is my query:
Select * from fiche where fichetype = 'EVENT' and sdate like '?%' ORDER BY cdate DESC
And I'm using this part of code to bind the value:
sqlite3_bind_text(getEventStatement, 1, [value UTF8String], -1, ...
I'm trying to improve performance for my application, and I'd like to change from the NSMutableArray I'm currently using to a dynamically allocated C array.
As a test, I've created this class:
In my class interface, I have:
MyObject *myObjectArray;
In my implementation, after the object has been initialised, I have another method to...
Hi all
I want to resize the map icon when Zooming is applied on mapkit.IS this possible
...
In a tab bar application, I'm adding a view to my first tabbar view by doing:
[self.view addSubview:anotherView.view];
Once anotherView is done, I do:
[self.view removeFromSuperview];
Which goes back to the parent but doesn't fire viewDidAppear or viewWillAppear on the parent. I can use messaging but it seems there must be a b...
Hello All,
I am trying to save a MutableArray in NSUserDefault as follows:
NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
[prefs setObject:arrSelectedPlayers forKey:@"arrSelectedPlayers"];
Than I am trying to get this array:
arrSelectedPlayers = [[prefs mutableArrayValueForKey:@"arrSelectedPlayers"] mutableCopy];
...
Hi,
I want to create a tags system for an iPhone app that let you type the tags names and appear like in some Mac OS software.
Like this:
Do you know if there's a way to do that? Or if there's a third party library for that?
Thank you!
...
I have an application in which I change the data on web and then download the files then I compile my iPhone app with data. I just want to create ad-hoc distribution so I have already added devices. So is there a way that anytime I change data on web then I compile my iPhone app over the server using PHP and some command-line script so...
Hello All,
How to detect the iPhone angle?
I mean that when iPhone is straight (i.e) HomeButton is in bottom part, so how to detect 90 Degree from UIAccelerometer Method.
CGFloat RadiansToDegrees(CGFloat radians) {return radians * 180/M_PI;};
i try RadiansToDegrees(atan2(acceleration.y, acceleration.x)) but it gives -90 degree angle
...
Hello,
(newbie here) I'm using a UINavigationController in my iPhone app and would like a child view to access UIImages from a sibling. In other words the user sets images on child1, then on child2 I want to access those images.
Thanks in advance for your help!
...
Hello wise people,
I'm currently working on an app for iPhone, Blackberry and Android, but for now, I'm just inquiring about iPhone. (FYI, I'm an ideas guy; not an actual programmer, so please don't use too many syllables)
I desperately need the ability to incorporate the physical button from the iPhone headphones, into my app. So that...
Hi all,
I want to know :
How can I know that two imageViews are overlapping over each other?
How can I know which imageView is overlapping which?
How can I make the overlapping imageView go below and overlapped imageView come up?
For Example : If I have an arrow and a bow, if my bow is overlapping the arrow [i.e. physically the bow ...
Hello, I am a beginner in this very confusing Objective-C game.
I would like to play a very short sound effect every time a certain button is pushed.
How can I do this?
Can I use an mp3 file? Or will I have to convert to wav?
Thankya
...
I'd like to make a countdown to the next full hour. It's pretty easy to countdown to a specific time, like:
NSDate *midnight = [NSDate dateWithNaturalLanguageString:@"midnight tomorrow"];
how do I define an NSDate for "the beginning of every hour"?
Thanks!
EDIT: This is what I have currently. Having trouble integrating the solution...
I need to be able to force a different international keyboard, without the user manually having to go into the Settings application and enable that keyboard.
For example, the user only has English (AU) enabled, and I want to be able to bring up a keyboard for inputting Chinese without them having to enable the keyboard, and switch to th...
Hello,
I am using the NSUsersDefault to save the state of application when there is any interruption in the app.
What I am doing is that I have created a method "saveState" in my class where the application is running and in this method I am saving all the necessary things in NSUsersDefault, among those things I have few NSString which...
I want to select a image from Photo library or camera and have to save it into my photo album(If its already there i want to put 1 more copy)
-(IBAction) getPhoto:(id) sender {
UIImagePickerController * picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
if((UIButton *) sender == choosePhotoBtn) {
...
Hello,
My app has some languages that the user can change whenever wants.
The problem is that always uses the current device language selected, so at least my localizable strings are working as expected, but no matter wich language I set, I'm getting alwats the default selected of the device.
Where I have to call this code?
[[NSUserD...
My friend recently downloaded WhatsApp to his Iphone. Anyone can tell me technically how it works? Does it use the same technology as PushMail? How can it stay in the background? I am not a Iphone Developer, btw.
...