From an MKCoordinateRegion, how do I tell what the top of a mapview's visible area is? The MKCoordinateRegion will have a center point (coordinates). Do I then add the latitudeDelta to the center point latitude to find the top of the map? Or must the delta be split in half and each half added and subtracted against the center point la...
log
warning: implicit declaration of function 'TutorialAlertWithMessageAndDelegate'
here my code
.h
void TutorialAlertWithMessageAndDelegate(NSString *title, NSString *message, id delegate);
.m
void TutorialAlertWithMessageAndDelegate(NSString *title, NSString *message, id delegate)
{
/* open an alert with OK and Cancel button...
Hi,
I'm writing an NSString to a plist file but after its written to the plist, and when I try to open i get the following message
"This document "mylist.plist" could not be opened XML parser error: Unexpected character 2 at line 1 Old-style plist parser error: Unexpected';' or '=' after key at line 1"
Here is my code:
NSString *te...
As far as I know, there are three JSON Parsers for Objective-C, JSON Framework, YAJL, and Touch JSON. Then, These three would have their own characteristics.
For example:
YAJL can be used as a SAX style parser.
JSON Framework has relatively long history and is widely used.
Touch JSON parses NSData instead of NSString.
In addition, as f...
Okay, I'm working on a iPhone game. You start off on a menu screen, then select "New Game" or "High Scores". Let's select "New Game."
The first time you do this, you get an alert telling you how to play the game. I implemented this with the - (id)initWithNibName function. Here is the exact code:
- (id)initWithNibName:(NSString *)ni...
Hello,
I m new to core animation i want to rotate an imageview left or right but i want it to be rotated in z axis so it can looks like a circular rotation.Here is an image for more explanation
i want to rotate the image the inner imageview these are two imageview's.
i have tried this code please someone apply this and correct the co...
Say that I have Class A and Class B. Class B is a subclass of Class A. Class A contains some properties and then Class B extends the Class A superclass by adding some additional properties, specific to that subclass. I have created a Class A object and now wish to convert the object to be a Class B type object at runtime, so that I can a...
i know how to create a control during runtime, my controller class has a IBAction method inside it. How do i connect the event associated with a control to the IBAction method. Just like ctrl+drag inside Interface builder except during runtime
...
Hi,
I was wondering if someone can show me how to sort an NSDictionary; I want to read it starting from the last entry, since the key is Date + Time and I want to be able to append it to an NSMutableString. I was able to read it using an enumerator but I don't get the results I want.
Thanks
...
I am new to iphone development.I am displaying a xml parsed contents in a grouped tableView.I want disable the click event on it(i should not be able to click it at all) .Since it is grouped table , it contains two tables and i want to disable the first table only and not the second table.How can i achieve it?Please help me out.Thanks.
...
I want to add a detail view for one of the cells in my UITableView. I've created a new view controller SyncDetailViewController) and a NIB for the detail view. Didn't make many changes in the new class. Just added a label and outlet for it and connected nib with view controller.
Now I've added this code to my view controller (the one wi...
I am calculating g with e and s, which are all doubles. After that I want to cut off all digits after the second and save the result in x, for example:
g = 2.123 => x = 2.12
g = 5.34995 => x = 5.34
and so on. I Use...
g = 0.5*e + 0.5*s;
x = floor(g*100)/100;
...and it works fine most of the time. But sometimes I get strange results...
I am new to iphone development .I have displayed a list of contents in a grouped table view.How can set the table background transparent such as i should see the text displayed on the gray-color(default color) background and not on the white color.Please help me out.Thanks.
...
Hi,
I am creating an app, in which the user will be able to choose a photo. Now I want that when the user taps a button, an UIActionSheet pops up to let the user choose if they want to use the Camera, or the Photo Library. The UIActionSheet should always be there, but the Camera option only if the device has a camera. I'm not sure if th...
I am new to iphone development. I am displaying my content in grouped table view. I want to change the alpha value of the first group of my table only. How can i achieve that. Please help me out. Thanks.
...
I am busy with a score overview and I was wondering what is the best way to do it.
My first thought is that is would be an UITableView because of all the functionality it already got.
But because of all the functionality it also has it limitation when you want to change the look.
I was wondering what is a better way:
An custom UITabl...
Hi.
Are there any other way of displaying an object/button/whatever for for example 3 seconds than with a NSTimer?
Thank you :)
EDIT:
Could I use an animation to do this? I'll try.
...
I am using the following code to send the mail but when i click on the send button, it come out of the app and send the mail.
i dont want to come out of my application.
-(IBAction) done:(id) sender
{
[self sendEmailTo: @"[email protected]" withSubject: @" Question"
withBody:[textbody text]];
}
- (void) sendEma...
according to picture it report an object leak
how can i fix this issue?
...
Hi,
I'm looking for some objective-c Curl Library to send a "curl -F ..." command.
I just found complicated ways.. is there an easy class which let me send it easy as direct command?
Greetings
...