iphone

Scrolling don't work in UITextView included in UIImageView

I have a simple application with a "big" text in a "little" UITextView included in an UIImageView. I can't scroll into my text, and i don't understand why ? If there isn't UIImageView, scrolling works. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UIImage *backImg ...

CALayer and obtaining currentcontext of its UIView

I try to learn the drawing process in UIView in iphone. as I understand the drawing process accurs only if the method [UIView drawRect] exists. it starts with [CALayer display] and from within that method [UIView drawRect] is called (to be precise :first [UIView drawLayer:layer inContext:context] is called and from within this method ...

Access UI Elements from C function

Hi, In an iPhone application, I have some plain C functions. Is it possible to access UI elements (declared on viewcontroller) in these functions? Thanks. ...

iPhone: get contacts phone number type

hi all, i am able to get the phone no of any contact from following code NSLog(@"%@",ABMultiValueCopyValueAtIndex(ABRecordCopyValue(ref,kABPersonPhoneProperty) ,0)); NSLog(@"%@",ABMultiValueCopyValueAtIndex(ABRecordCopyValue(ref,kABPersonPhoneProperty) ,1)); NSLog(@"%@",ABMultiValueCopyValueAtIndex(ABRecordCopyValue(ref,...

How to handle "Don't Allow" for location manager ?

I haven't think of this yet now . Till now whenever device was asking me use location update I was allowing it . But when now I am not allowing then it the location manager gives me kclErrorDenied and the location manager can not start again until I restart the application . So my question is that should I give a message to restart ...

iPhone XML Parser - [c setImage:[attributeDict objectForKey:@"img"]]; WARNING

Hi I am having issues with the following and it crashes the iPhone simulator, while the script has no errors it did bring up one warning in this script. [c setImage:[attributeDict objectForKey:@"img"]]; The warning is City may not respond to -setImage: I am not sure what I have done wrong here is the fill source code. #import...

How can I test my new app on my real iPhone?

I have jailbroken iPhone. I want to test my applications on my real iPhone whithout paying $90 . How can I do this? ...

Ban of the location based ads for iPhone

http://developer.apple.com/iphone/news/archives/2010/february/#corelocation Can anyone tell me what is the exact description of an ad and just a hint for a user? We are developing a library that shows small banners depending on user's location. E.g. we are passing a cafe - we have a banner about this cafe, we are passing a church - we ...

button autoresize

Hi, Can anyone help me with the small buttons/icons used within the iphone apps. I am fairly new to the app world and trying to make some buttons(viz the tick box) for my app. I am not sure if we should start with a 50X50 and autoresize in the app or just have a 20X20 which exactly fits the space... Any help on this is appreciated.. ...

How to set target and action for UIBarButtonItem at runtime

Tried this but only works for UIButton: [btn setTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside]; ...

How can I add a splash (video) to my NavigationController iPhone app?

I have managed to use a dirty hack for now to fade my navigation controller view into the main window after a delayed period on which is my splash screen image, but it feels so dirty I would prefer to have a non-navigationcontroller view appear before the rest of my navigation controller app ...

How to Post attachments to twitter using twitter API

Hi every body, Can anyone suggest me how to post attachments to twitter using twitter API, I tried this it is working but ,our attachments has not been posted like images and links .. my code is like this TwitterRequest *t=[[TwitterRequest alloc] init]; t.username=self.username.text; t.password=self.password.text; [t statuses...

How do I import a CSV file into my iPhone application?

I need to import a CSV file in to my app. How can i do that. Is that possible in iPhone? Thanks, ...

iPhone: How to Get Location as in the App "Qype"

Hello, I've discovered today the app "Qype" and now I'd like to know how I can build a function to locate myself like in quype. For those who dont know this app: It's an app that shows you Cafés, Bars, Restaurants etc. near you. When I'm starting Qype there's a question: "Qype want to locate your position. Do you want to allow it?" Ar...

iPhone: How to Sort Dates Using NSDate ?

I have to sort objects based on NSDates. What are the options for sorting by NSDate? ...

2 UTF8Strings join problem

Hello everyone I have some codes read the query results from sqlite: while (sqlite3_step(statement) == SQLITE_ROW) { char *rowData = (char *)sqlite3_column_text(statement,0); NSString *fieldValue = [[NSString alloc] initWithUTF8String : rowData ]; char *rowData1 = (char *)sqlite3_column_text(statement,1); ...

Wipe a delete button out of table view cell

Hi, when pressing a row delete button on a table view, I do some validation, and if the user chooses to cancel the operation it all should rollback. Not only want to keep that row (what is happening), but also make disappear the delete button leaving only the "-" round button. How can I do that? once again, thank you. ...

UIView and subviews - opacity

Hi Is it possible to make a UIView (and any other subviews within it) set to an opacity of say 0.5 or whatever? Not sure if this is even possible, but want to ask. ...

UIFont crash problem

When i use this line [UIFont fontWithName:@"Arial" size:16] its work fine,but [UIFont fontWithName:@"Arial Black" size:16] it crashes my app..... In xib design there is the font name of Arial Black is available.But when i set using [UIFont fontWithName:@"Arial Black" size:16] this it crashes my app.. How can i set this font na...

UILabel and superscript

Hi I have two strings: a variable length piece of text another string with numbers that point to a reference In my view, the first piece of text is displayed in a UILabel, I adjust the size of the label to accomodate the size of the text. This means I cannot just place another UILabel on the screen, at least not without repositioni...