How to draw an image
Hi, I need to draw a .png image on an UIView. I have no clue how to do this. Is there any way to do this instead of using UIImageView. Please guide me. ...
Hi, I need to draw a .png image on an UIView. I have no clue how to do this. Is there any way to do this instead of using UIImageView. Please guide me. ...
I felt like I'm having the same issues as addressed here. But everything I try doesn't seem to work. The program goes as follows: I'm asking for user credentials (username/password) Then I do some calls to the server downloading information. When its finished, I display a set of users, the user clicks on one, then is asked for the ...
I have this IBAction that is suppose to make a character onscreen jump, however when its called it just moves the character up once, then each call after that the character just moves down more and more. This function should just be called then the character would 'jump' up and then fall straight down off the screen since i havent put i...
See the log statement comments at the end of the code snippet... acceleration.x is a decimal, but when I store it to the dict, it seems to be 0. NSDictionary *entry = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithDouble:acceleration.x], @"x", [NSNumber numberWithDouble:acceleration.y], @"y", [NSNumber numberWithD...
How can I make my view resize in response to the in-call status bar from my nib? I figured it would just be setting the resize properties, but they're not enabled for the root UIView. (I think my main problem here is I don't know what any of this is called; I can't find any reference to the in-call status bar in any of the documentatio...
If you look at your Inbox in iPhone OS 3.0's Mail app, you'll see that swiping down displays a grayish background color above the UISearchBar. Now, if you scroll down to the bottom of the table, you'll see that the background color at that end is white. I can think of a couple ways of solving this problem, but they're pretty hacky: ...
I'm in the process of creating an app. I'd like to have a pared down free version and a full paid version. Obviously, they will share a lot of code and some xib files. How to I share these without just duplicating them? ...
(Problem solved now, see answers below) Hello, in my app I am trying to create a points counter. That increases a number by 10 every time a button is pressed. I successfully managed to get my app to increase a value (0) by 1 every time a button is pressed, and to remember the latest value and display it next time the app starts. But w...
Still learning Objective-C / iPhone SDK here. I think I know why this wasn't working but I just wanted to confirm. In awakeFromNib, if I use [[NSMutableDictionary alloc] initWithObjects:...] it actually allocates (iPhone) system memory with this NSMutableDictionary data, but when I use [NSMutableDictionary dictionaryWithObjects:...] it ...
Hi everyone! I have a quick question I was hoping someone here with more experience could shed some light on. I am currently using the AddressBookUI framework (basically ABPeoplePickerNavigationController) to display a list of contacts from which a user may select one and drill down to the contact details view. Something really ordinar...
I have created aand sent a short email with a .txt attachment in an iPhone app. If the attachment is about 10 lines long, GMail opens it just fine. If it's more than 20 or so lines, GMail chokes - it won't open the attachment, download the attachment, or even forward the email. Also, if I send the same email to my colleague and he ope...
I have a controller that contains a tableView that spawns another controller modally to enter a name in. Once the name is entered the modalview is released. But... how do I tell the first controller to [tableView reloadData]. I have tried in the ViewWillAppear, ViewDidAppear, etc... none of them will fire off the command because the firs...
(Nearly solved, but not quite) (My temporary solution is to use a void method and call it in every button, and in that way I can edit the code used by multiple buttons rather then when making improvements having to edit each individual buttons if statement) I bet it's a really simple error i've made, but I can't find it. I'm trying to ...
I'm new to programming for the iPhone and i'm wondering: how extensible are the various controls? Let's take the button as an example: can i change the background graphic? can i make it grow larger when i press on it? can i change the font? can i use a custom font? can i use a button graphic in place of text? ...
I've been searching around for tutorials on how to save certain things to NSuserdefaults but have only found stuff mostly dealing with arrays and strings. Can anyone lead me to or give some person knowledge about saving and loading a int. For my application I have my int highScore = 0; but I want it to save this int into your NSuserdefau...
If you change an anything (entity, relationship, type of attribute etc) in a CoreData model after it has shipped, what is the general process that you have to go through to get the user's store updated for your new model. ...
I applied a week ago to Apple via internet to join the Iphone Development Program, and sent 'em my $99.00. I was of the impression that generally, the response was quick. However, other than an email acknowledging my purchase, I have not seen anything at all. Would some kind soul explain to me what to expect, and when? Thanks in adva...
I want to be able to determine if the number of bytes in an instance of NSMutableData is equal to zero. How would I do this? ...
I was just wondering if this is possible... if I have a "Static class" (a class with a bunch of static methods) is it possible to have a class variable and access it through one of the static methods? I am getting a warning of "instance variable accessed in class method". I maybe just not getting it. Is there anyone that can answer this...
i got 3 syntax errors: "syntax error before "}" token" my code was IBOutlet UITextView *fruitDescription } "syntax error before "{" token" my code was - (void)viewDidUnload { "syntax error before "{" token" my code was - (void)dealloc { Any ideas? ...