iphone-sdk-4.0

search button in search keyboard

hi, I have a search bar and on clicking the search bar the keyboard pops up. On pressing the search button on search keyboard the keyboard should hide. How to do this ? ...

Need to get the Values of the altitude or Zoom level in MapView.

Hi all, I am implementing a MapKit based application. I need a clarification that, it is possible to get the altitude or Zoom level of the mapView when we zoom in/out in the Map.Because based on that I need to call some events. Please help me on this. Thanks in advance, Sekhar Bethalam. ...

Possibilities to Upload a Video to YouTube.

Hi all, In my application need to support the uploading videos to the YouTube. Is it possible to upload a video to youtube with in the application, If we can guys please help me how to do this. Thanks in advance, Sekhar Bethalam. ...

Resize image in UITableViewCell to not be total height

Current I am trying to show a simple table in my iPhone application where I use UITableViewCell's with the style UITableViewCellStyleValue1 (image to the left, detail-label right-alligned). The cells all have the default height (50.0f). Before I add an image to the cell, I resize the image to be 40x40, so that it is not the total height ...

Downloa and Play Audio/Video files from server to our application using iPhone sdk

Hi all, I am implementing a server based application. In that I need to Download and Play audio/video file.Is it possible to Download and Play Audio/Video files from the server to our application. Please help. Thanks in advance, Sekhar Bethalam. ...

Iphone SDK 4.0 -->> simulator just sits there and doesn't load the ap

Hi I have started learning iphone apps development. However when I build and run the project, the simulator opens with new app icon. When I click on the new app icon ...nothing happens. -->> simulator just sits there and doesn't load the app Any help will be appreciated. Marty ...

UITabbarController setting view

Hi, I have a UITabbarController set by the Interfacebuilder. The tabbarcontroller has 5 tabs, the first is a welcome page, and the second is a UITableViewController. Both have a NavigationController. The 2nd tab should show a category list. When I launch the app, all is fine. When I press the 2nd tab, it load the view perfectly with the...

How can I use AVAssetExportSession to overwrite songs in my iPhone/iPod library?

So supposedly in the iOS 4 SDK you can edit and write to the user's iTunes library. I can successfully load an AVAsset from my iPhone/iPod library, but as a quick test I'm trying to just overwrite the same file right away using AVAssetExportSession but it's always returning the status "4" which I THINK is AVAssetExportSessionStatusFailed...

iphone sdk: CGAffineTransform not working in iOS 4???

hi everyone, i'm using the following code to move a uialertview with a uitextfield in it. The alertView is supposed to slide up when the keyboard appears and slide backdown as soon as it dissappears. The following code worked perfectly fine for me under ios 3.1.2. But for some reason it does not work under ios 4.0..... The issue seems t...

loading resources dynamically for iphone 3GS and 4

Since the display resolution is different, I wonder if there is an official guide or tutorial that shows how to load images. icons, nibs, etc. dynamically for iPhone 4 and iPhone 3GS. Thanks in advance. ...

Memory issue regarding UIImageView on IPhone 4.0 / IPad

Hello All, My Application is crashing due to low memory [ Received memory warning level 1 + 2] To trace this I have used Instrument and come with following points Test Enviorment : Single view controller added on Window When I don't use UIImageView Real Memory is used 3.66 MB When I uses UIImageView with Image having size 25 KB : R...

Get opposite of number if middle is not zero.

I need a function that will return the opposite of a number, but i also need to be able to specify the 'center'. eg. Center = 0. If the number was 10, it would return -10. I need this: Center = 100. If the number was 10, it would return 190. Any idea how it could be done? Thanks. ...

Possibilities to compress an image (size).

Hi all, I am implementing an application. In that I need to find out a way to compress the image (size). Because it will help a lot for me to making the space comfortable in the database(server).Please help me on this. Thanks in advance, Sekhar Behalam. ...

Asset location information unavailable

I am trying to get picture locational information with this code: NSArray* assetsA = [myAssetsProxy getAssets]; int assetIDX = 0; int n = [assetsA count]; for(assetIDX = 0; assetIDX < n; assetIDX++) { ALAsset* asset = [assetsA objectAtIndex:assetIDX]; id value = [asset valueForProperty:ALAssetPropertyLocation]; if ([value is...

Problem when uploading an image file along with the audio file in to JSP server

Hi all, I am implemenging a server based application. In that I need to upload some values, image file and audio file. But it is taking only one file at a time. I looked into the code flow but there is no problem in that. Why I am confident is if I comment out the code of uploading the image then the audio file is uploaded perfectly. Wh...

Using ipad camera connection kit on iPhone 4 through the SDK

I would like to develop an app which allows the users to copy their photos from their cameras to their iPhones. Since iOS 4.0 supports external accessories, theoretically this shouldn't be to hard, unless Apple specifically blocks it. I read the documentation for the ExternalAccessory.framework and ordered my camera connection kit. Whi...

Uitextfield "losing" text value between view flips

I'm a days-old iphone programmer - I'm writing a simple program based on the utility xcode template. I have a uitextfield that writes its value into a singleton object on edit. I also have implemented key observation on changes to this value. This works fine. When I flip the view to the second "flipside view" and back again the value is ...

Posibilieties to call a method when the we tap on the accessory view in the Map

Hi all, I am implementing an application using MapKit.My question is like this, "Is it possible to call a method when the user taps on the accessory view of the pin in the map, instead of tapping on the accessory button?". Please suggest me on this. Thanks in advance, Sekhar Bethalam. ...

GSRegisterPurpleNamedPort SIGABRT in UIApplicationMain Before App Delegate Gets to Run Any Code

We recently put an update out for one of our apps and many users told us that they could no longer run the app because it crashed on startup. We have been able to recreate the crash by building and running the previous release build onto a device and then building and running the new build overtop of it on the same device, but the stack...

Possibilities to use NSTimer global

Hi all, I am implementing an iPhone application. In that I need to use a timer to call a method to get the values frequently. And Also I need to stop the Timer in another method. So I need to use it as global. But I don't an idea to create a global Timer can you guys please help on this. Thanks in Advance, Sekhar Bethalam. ...