I just spent the last 3 hours trying to figure out this error. I would like someone to explain it to me so I don't do it again.
I assigned an NSString instance variable without using "self". When the class ("self") released, I received a "bad access" error. I have done this exact same thing in another class with the same variable dec...
The 'info' button in Interface Builder shows me that there are dozens of 'Illegal Geometry' warnings, each one with the issue 'This view overlaps one of it's siblings.' Is this anything to be worried about? Will it stop the app being accepted by Apple? The errors are happening because I'm layering PNGs over each other when I make the int...
UITableViewController has an initWithStyle method where you pass it the style you want the table view to use, plain or grouped. These means that to create and use my table view controller, somewhere else in the code, possibly in multiple places, I do this:
MyViewController *myViewController = [[MyViewController alloc] initWithStyle: UI...
Hello,
I'm wondering if it is possible to put a hyperlink in a UITextView that will open up safari and take the user to a web page. And if so how can I accomplish this.
Thanks in advance for your help.
...
Is it possible to change the color of the disclosure accessory (the arrow on the right side of a table view)? If so, how?
...
Hello,
in my UIImagePickerController (camera shooting view), I want to track touches.
Every touch event gets properly called except for touchesbegan:
It's not a typo or something because touchesbegan: had been called up to the moment,
I've changed the controller from UIViewController to UIImagePickerController.
Why is touchesbegan: no...
I am trying to pull some data from a server (I don't own the server) however it returns some needed data with a http 500 error code, however NSString stringWithContentsOfURL returns nil if the server returns http code 500.
I'd like to retrieve the data even if the server returns 500.
...
I want to pass my textview content to a server via post request but I guess I have a problem with encoding. Do | have to convert say blanks to + or %20 by hand or is there a library supported by cocoa or any other 3rd party? Is this sth trivial ? I got stuck with this simple step for hours! :)
...
Does the state pattern in an iPhone application -- In my case, a relatively light-weight utility application -- use too much memory?
The state pattern, as I understand it, uses several classes; these classes represent different states. All of the different state objects are instantiated and stored in different pointer variables until t...
On December 12th 2008, the maker of the Tweetie IPhone App posted a great example how he accomplishes UITableView scrolling without the jagged/raggedness that normally entails. His example code works great with version 2.2 of the SDK, however, when I compile for 3.0 I cannot get the click-highlight to work on an individual cell. Anyone...
I have a view object that I can tap and get a valid touch in touchesMoved:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
If I lightly tap while sliding the object, touchesBegan fires and I call touchesMoved, as before, but this time touch in touchesMoved is nil. An...
I am using the Development Provisioning Assistant in the iPhone Developer Portal, but when I get to the part where it asks me to generate and upload my CSR, I try to upload it and it just gives me this error:
The CSR selected is invalid. Please check the file and try again.
Does anyone know what this means or what I can do about it?? T...
I am trying out iPhone Apps, coming from C#, I am finding very difficult to grasp the iPhone dev environment.
So far, I am able to get my 'Makes' listed in a TableViewController. I now wish to get by 'Models' listed when a Makes is selected. Can someone help me with sample code.
Can I use the same TableViewController to show the Models...
How do you compare the current date with another date in iPhone programming..
eg:
Date1= 1-10-2008
Date2=15-06-2009.
i want know Date1 is a future date or a past date..?
pls help me with code...
thanks and regards.. raju
...
I have a UITextView object. The text in UIView has a phone number, mail link, a website link. I want to show them as links with following functionality.
When someone taps on URL - Safari should open the the website.
When someone taps on email link - Mail should open up with my address in to field
When someone taps on phone number - Phon...
Hi
We have paid developer account for iphone development and we have 2 iphones one jail broken and other one non jail broken. We have registered both phones for development and got provisioning profile. We can use non jailbroken phone for development. But we try to use jail broken phone for development we get message Error starting exec...
Hi there,
I would like to have my iphone test app to be tested automatically in an IPhone. The following are the steps I would like to have:
1. compile, link and code sign the iphone app (Xcodebuild)
2. upload the newly built app to iphone
3. run the uploaded app in iphone automatically
4. collect the result from the gdb console...
I'm currently developing an iPhone application that loads data via a webservice into a table. Right now I have it loading the data and creating/displaying my cells via [tableView cellForRowAtIndexPath] on two separate threads. My problem is that I need the data to create my cells.
So currently I load my data into an array on one thread...
How to connect to https url from iphone application ?
Is there any sample code available?
Thanks & Regards,
Yogini
...
Hello, I have been trying to animate using an NSTimer and I've set up my code like this:
- (IBAction)startClick:(id)sender{
animationTimer = [NSTimer scheduledTimerWithTimeInterval:(.1/25.0) target:self selector:@selector(tick) userInfo:nil repeats:YES];
}
- (void)tick{
[self animatePig];
}
- (void)animatePig{
UIImage *pig...