iphone

NSString scanning?

hi, i am having NSString* str = @"1223.2212311"; i want to convert it as 1223.22(after floating point two chars),is it possible through NSString?i have to use NSScanner? any help please? ...

Most elegant way to access UINavigationController from pushed controllers

Say I have NavigationController->Root[Table View Controller subclass] So from didSelectRowAtIndexPath of my Table View Controller subclass I have to push another view controller to NavigationController. What is the most elegant way to access NavigationController? Should I use have delegate of NavigationController in my Table View Contro...

Need help with NSXMLPARSER!

<webservicecep> <quantidade>2</quantidade> <retorno> <cep>31010330</cep> <uf>MG</uf> <cidade>Belo Horizonte</cidade> <bairro>Santa Teresa</bairro> <tipo_logradouro>Rua</tipo_logradouro> <logradouro>Paraisópolis</logradouro> <resultado>1</resultado> <resultado_txt>sucesso. logradouro encontrado local</resultado_txt> <limite_buscas>5</lim...

image picker controller takes insane memory even if released

my image picker is initialized like: self.imgPicker = [[UIImagePickerController alloc] init]; self.imgPicker.allowsEditing = YES; self.imgPicker.delegate = self; self.imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; presentation: [self initImagePickerFromLibrary]; ----(this calls the lines I ...

add Items to Sencha Nested List

Hi i got a Problem with adding new Items to a Sencha Nested List Component. currently my code looks like this: var newItem = nestedList.add({text:rowData.name}); nestedList.doLayout(); The Problem is the Items just wont show up no matter how often on on what i do call doLayout. When in debug the nestedList Object, the items are corre...

Drag-n-Drop from UIPopoverController to other UIView

How would I go about implementing dragging and dropping a UIView from UIPopoverController into the back UIView. This is the functionality that Pages provide in their insert media popover, where you can drag a shape out from the UIPopoverController and drop it into the main document. I am actually confused with the pan UIGestureRecogniz...

suitable datastructure to store the parsed data from webservice

hi friends I am developing an iphone app that utilizes webservice. Which is the most suitable datastructure that can be used to store the data as the XML obtained from the webservice is parsed ...? ...

How to upload image on twitter in iphone using mgtwitterengine

Hi , I am using mgtwitterengine in iphone app for twitter. I am able to login on this . I want to upload image on twitter using mgtwitterengine . How I can do this ?????? Thanks ...

Toolbar above a TabBar view problem

I have an application with views structured like this: Tab Bar Controller UITabBarController Tab Bar UITabBar PickerView PickerViewController Tab Bar Item UITabBarItem Image View U...

How can I tell if a referenced object has been deallocated in objective-c?

After upgrading to iPhone OS 4.0 the application started to crash after switching between applications. The application crashes in the same place when the application receives a memory warning. It seems like some objects are automatically deallocated when a memory warning is received and then when we try to use the deallocated objects t...

Iphone event delegate

hi... i have drawn rectangle using core Graphics concept now i need to assign some event to this rectangle area how can i do this link button click event thanks in advance ...

How to call default implementation of heightForRowAtIndexPath ?

In my heightForRowAtIndexPath method I want to customize height only for certain rows. For the rest I want the framework to take care. How would I do that? ...

will the binary files of ansi c Application can run of iPhone??

I have some applications that are written in ANSI C. Will I be able to run the binary files of those apps on the iPhone? If not directly, is there any other useful method to do so? I don't want to rewrite the applications. ...

merging two data objects

I have to merge two data objects and later separate them.Can anybody suggest me the way to go about it.It's urgent!!!!!! please respond fast.... Thanks ...

How to access sqlite database from server in my application.

hi all, I am new in iphone and i work a project in which required to put database on the server. I take link on the server and create our table on the server. i search on the net i find that below process. The Client Side Application: 1) receive input from the user (or client app event) 2) generate SQL request 3) XML encode the reque...

how to get plist file's data content in tableview's cell in iphone?

In my application i hve tableviewcontroller and its detailviewcontroller(dvc). dvc contains textfield and button.I actually want when i clicked on button textfield text is replaced the tableview cell text.what can i do ? explain in detail ...

iOS4 creating two UIActionSheets, 3.1.3 creating one? Why?

The code below creates one UIActionSheet in XCode 3.2.2, iPhone OS 3.1.3. Embedded in the Action Sheet is a date picker. But it seems create two sheets in XCode 3.2.3, iOS4, with one overlaid on the other. Also, I get this error in the console (again, only with XCode 3.2.3, iOS4): wait_fences: failed to receive reply: 10004003 What ...

Can anyone point me a direction i can follow to learn how to handle audio in xcode

My real objective is to be able to use 1 audio file and create X amount of different pitches and then playing them in the app using some code to handle the timing. TIA for any helpful insight ...

UILabel numberOfLines

I need to adjust numberOfLines of label in cellForRowAtIndexPath. Label is in word wrap mode. However, the actual calculation of label's height is taking place in heightForRowAtIndexPath. How to calculate numberOfLines in cellForRowAtIndexPath? For now I'm just using some very big number. ...

ViewController design question for complex layout

I'm building my second app, and I'm trying to learn from the places I stubbed my toes on the first one. Just as in the last app, I have sections of my app that feature a view with buttons along the bottom (basically a custom tab bar) that trigger the switching of the contents of the main, big area of the screen. One is a map view, one i...