iphone

Iphone: uitextview setting done button

Hi! I use a UITextView in my application. The text editing is ok. I set the return button to Done. When I finish the editing, I like to hide the keyboard with the done button. My Question: How can I set the done button? Thanks, Balu. ...

How can I define multiple options for UIViewAnimation?

Probably it is just a question of proper syntax. I use the animateWithDuration:delay:options:animations:completion: UIView method. The options: is the problematic part here: when I assign only one option (for example UIViewAnimationOptionCurveEaseInOut) everything works fine. What if I want to assign multiple options to the same a...

NSUserDefaults BOOL returning (null)

Hi guys, I'm trying to pull an NSUserDefaults value from a Settings.bundle into my application. When I load up the NSUserDefaults on application load, though, an NSLog reveals that my BOOL value returns "(null)" and my String value returns the number 39540360. The weird thing is that the documentation on NSUserDefaults specifically state...

Deleting Managed Objects in Background Block

On iPhone, I´ve tried to delete managed objects in background: - (void) cleanUp { dispatch_queue_t queue_cleanUp; queue_cleanUp = dispatch_queue_create("com.aroundcal.cleanup", NULL); dispatch_async(queue_cleanUp, ^{ while (!self.stopThread) { [self deleteMyObjects]; [NSThread sleepFor...

Database is locked -sqlite3

Hello all, -(void) dropCategories{ if (deleteCategoryStmt == nil) { const char *deleteSql = "delete from tb_category"; if (sqlite3_prepare_v2(database, deleteSql, -1, &deleteCategoryStmt, NULL) != SQLITE_OK) NSAssert1(0,@"Error in preparing drop category statement with '%s'", sqlite...

how to convent a NSString * to a file?

I have a NSString *csvData which contains the csv data and the format is correct. In my program (the iPhone), there is a button. When the user click the button, the string will convent to the .csv file. However, I don't know how to convent the NSString to a CSV file. Does the objective C provides any build-in function or class can help...

How to install iphone sdk 4 on Mac OSX 10.5.8

I found following sentence in the Xcode 3.2.3 Readme (Posted: August 11, 2010 in iPhone Developer Center) - "Xcode 3.2 requires an Intel-based Mac running Mac OS X Snow Leopard version 10.6.4 or later." But my develop environment is 10.5.8 and don't plan to upgrade my system currently. How to install the latest Xcode 3.2.3 and iOS SDK ...

Twitter logout using oauth in iphone

hi, I'm using http://github.com/bengottlieb/Twitter-OAuth-iPhone/tree/master for Twitter+Oauth in my iPhone app.I am creating a music application where user can login and log out of twitter. This paticular Twitter+Oauth implementation doesn't use sessions, so I'm not sure how this works. Does anyone have experience with this and if so ...

moving series of objects on the ellipse path in iphone sdk

hello i have series of balls (12 balls) and i want to move them on the ellipse path when i touch them view layer and move to right or to left. i tried to use CAKeyframeAnimation class with single object of them. this object moves correctly in the ellipse path (i used CGPathAddCurveToPoint to define the path), but this object moves in t...

this code is not working on device but on simultor ?? any idea i have 3Gs i think

i want to embed compass on my application can any one help me plz - (void)viewDidLoad { locationManager=[[CLLocationManager alloc] init]; locationManager.desiredAccuracy = kCLLocationAccuracyBest; locationManager.delegate=self; //Start the compass updates. //[self.locationManager startUpdatingHeading]; [[self lo...

How to post tweet in twitter with the use of oauth in iphone

Hi to all, I have created a music application in iphone . i want to integrate twitter in my application with the use of Oauth such that when a user log in twitter his username and password details are validated and then the post tweet page is opened where the user can post his tweets .So, can anybody help me to how to post tweets in t...

How are app reviews handled in the iPhone/Android/Blackberry app stores

I am considering writing a mobile application for one of the following mobile platforms: iPhone Android Blackberry One area which I am struggling to get more information about is how app reviews are handled in the app stores on these platforms. In particular, I am trying to answer the following questions: Are app reviews moderated ...

Xcode 4 Code snippit question

Hi guys, Does anyone now how to remove user generated code snippits from the xcode library ?. ...

how to create UICalendar component in iphone sdk ??

Possible Duplicate: open source calender for iphone sdk hi, i want to use Calendar in iphone sdk, is there any free open source Calender available for iphone sdk ?? ...

open source calender for iphone sdk

I am looking for the open source calendar in iphone sdk, any ideas ?? ...

ive made me an xcode 3.2.4 with all sdk´s from 3.0 to 4.1 - works, but i am missing the version-choice in the dropdown

as i got really on edge due apples sdk-politic with the new xcode-versions, i composed my own xcode. until some days i had installed 3.2.2, 3.2.3 and 3.2.4 at the same time - no diskussion, there was no other way. that this is no elegant way i think anybody can understand. so i just copied the sdk-folders ( /Developer/Platforms/iPhone[OS...

image data encoded problem

Hi.. i want to store image in MYsql Database using Php.getting Nsdata from uiimage,encoded this Nsdata to string.This string contains huge no of characters.when i m passing this string to PHP, url becomes nil.My PHP decoding img and ruuning perfectly.Only i m getting problem in sending string to PHP. plz guide me... Thanks. ...

Size of in phone memory iPhone application uses to run

Hi, I wanted to know what is the size of the in-phone memory which a typical iPhone app (native or web) uses to run. I hope out of full phone memory, only a part will be used for running app. Rest will be used as a storage container for different phone executables and static data. Any clue on this? ...

Is there a list of Unicode encoding range for the Emoji characters?

Is there a list of the Unicode encoding hex of every Emoji character on iPhone? Thanks! ...

I can't understand a leak -- Possibly Instrument fail ?

I'm trying to fix some leaks in an iPhone app, but I'm still fighting w/ one of them. It appears with Instruments, and I can see something like : ImageIO 128 bytes (Leaked Object -> Malloc) But I'm releasing nearly all used object (at least I think), could it be a false positive or some memory leak for the ImageIO library ? I know th...