Hi friends...
I am using http://www.mobileorchard.com/hello-there-a-corelocation-tutorial/
for getting the location using Iphone.(It gives Latitude & Longitude)
Now i want the cities/zipcode based on these Latitude & Longitude in Iphone.
So please suggest me for the above.
Sample code/tutorial will be much better(if possible)...as I am ...
my code is given below
NSMutableArray *arrayBookMark = nil;
sqlite3_stmt *selectStatement = nil;
NSString * strSql = [NSString stringWithFormat:@"SELECT bokmark_id,pdf_id,pdf_name,bookmark_name,pageno,imagedata,createddate from bookmarks"];
int returnValue = sqlite3_prepare_v2(database, [strSql UTF8String], -1, &selectStatement, NULL);
...
In order to support iPhone OS 3.x and 4.0 I programmatically control MFMessageComposeViewController functionality like this (use it only if the OS version is 4.0 or above):
// if iPhone OS version >= 4.0
if (os_version_num >= 4) {
MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
if([MFMes...
Is there a way to find out the maximum number of simultaneous touches on an iOS device (iPhone, iPod Touch, iPad) ? I've read here and there that iPhone can handle 5 while the iPad can handle 11, but I haven't found an official way (through a function call, say) to confirm this.
...
Hello,
I am working on an app (my first one), which is basically a TabBar app.
To be more precise there are:
- a login view controller
- a tab bar controller (when login is done)
- a landscape view controller that is used when the first itel of the TabBar is switch from Portrait to Landscape.
So, when I am in the first tab, I need to ...
Greetings. I'm almost finished with my first iPhone app, but have run into trouble with XML parsing. Instruments reports that the instantiation line sparks a memory leak in my parseXML method, but I can't figure out why. Here's the (entire) code for the method. Any guidance is greatly appreciated.
-(void)parseXML:(NSString *)xHC {
B...
Hi,
I want to develop ebook reader application, from which user can buy ebooks available in itunes connect associated with this application.
My Question is: when user pays for ebook, that ebook will be accessible by this application only,
Or it will get download to iphone itself? and will this ebook be consider as single iphone appli...
I'm trying to log in into a web page through an iPhone app. I'm using a NSURLConnection to try to connect. The app seems to be logging in correctly but I'm then getting redirected to a page that says I can't continue without Javascript enabled. I'm running all of this through the iPhone simulator that comes packaged with xcode. The curio...
Hi,
I need to tweak UiTextField behavior so that I can programmatically insert some asterisks and move the cursor at the beginning of the string;
I tried the "paste" trick (http://dev.ragfield.com/2009/09/insert-text-at-current-cursor-location.html), but the cursor is moved at the end.
The effect I try to achieve is like this:
At the sta...
To use the module apns-python-wrapper here: http://code.google.com/p/apns-python-wrapper/ you need to convert your iPhone's APNS device token, however, I'm not sure how to convert it.
Here is the fresh new token returned from the device: 8fa9c60685c158a3cf6f9c5de164b3817e68a075fcfdafcd982aa4b3d2ca99c7
And this is what it needs to look...
Hi
I have this simple code
@interface chatApp4Message : NSObject {
NSString* line;
}
@property (nonatomic, retain) NSString* line;
@end
@implementation chatApp4Message
@synthesize line;
@end
As you can see, I don't release the line property. However, when running this following simple code under the xCode leaks tool, I get no indic...
Hi Guys, I'm having a weird issue with my UITableView. The cells are configured from an Array of my Contract model. Adding and deleting instances work well. When I add a new Contract after previously deleting one, the old cell and the new cell's content are merged on the new one. Here's a picture: http://cl.ly/1WZy/ (Can't post image...
I use the following code to getting images from the sprite. And it works fine everywhere except the iPhone 4 (HD version).
- (UIImage *)croppedImage:(CGRect)rect {
CGImageRef image = CGImageCreateWithImageInRect([self CGImage], rect);
UIImage *result = [UIImage imageWithCGImage:image];
CGImageRelease(image);
return resul...
My iPhone is a iOS4(3.1.3 update).
I tryid this code.
#import <UIKit/UIKit.h>
@interface testViewController : UIViewController {
}
@end
//-------------------------------------------------
#import <MediaPlayer/MediaPlayer.h>
#import "testViewController.h"
@implementation testViewController
- (void)viewDidLoad {
[super viewDidLoad];...
Hey,
i have a huge problem with my sqlite3 database on the iphone sdk 4. I can only write/read the database once! With the iphone sdk 3.2 everything had just worked fine.
After the first try i get the errormessage "SQLITE_BUSY".
Here's a snippet of my code i use:
-(void) addFavoriteOdv:(Odv*)odv name:(NSString*)name;
{
@synchroni...
Hi all,
I'm using following code to save the downloaded file to iphone/ipod-touch's documents directory.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
[receivedData writeToFile:basePath atomically:YES];
The f...
iam building an application in which iam showing the 5 small images in a single row of the UITable view cell. i want to make selection of row on each image clicked not on the selection of row .
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 160;
}
- (UITableViewCell *)tableV...
Hi,
I have been developing an iPhone app for a few months now (my first app) using the 3.1.2 SDK. All of a sudden, my app started defaulting to running on the device during debug. I assumed that somehow my target settings had changed, but when I checked them, they said they were targeting the simulator, not the device. I checked all the...
HI
I have a main view on which i added a view and then I added a mapview. This mapview is perfectly scrolling in iPhone SDK3.1.3 but i am not able to scroll it on iPhone SDK3.2 and 4.0. Can anyone help me. actully on middle view we write some tuoch event to trap the touch of user.
code is this
viewTouch = [[UIViewTouch alloc] initWit...
Here is my situation. I have an app with four tabs. The first tab contains a registration screen. Once the user is registered I want the SAME tab to load a separate "Latest News" screen instead of the registration screen. Any help would be appreciated.
...