iphone-sdk-4.0

How to just take a photo with iPhone

Is there a way to just take a photo with an iPhone? (No delegates or controllers). Actually what I want is: 1 One view that shows what the camera is seeing, 2) One button that takes a photo. (Like calling a function and getting the photo back) added:The "view" above would be an area in a normal screen, also the button Would thi...

UITableView "Scroll down to update"

What is the easiest way to implement "Scroll down to update" functionality like in facebook "News feed" when you scroll down the news from top you see an update indicator and it update the news accordingly. Thanks in advance ...

Can't adjust volume on iOS4 using AudioToolbox/AudioServices.h

Hi, I am unable to adjust volume of sounds in my app when testing on new iPhone 4 (tried two devices) it works on an iPad and my colleague just told me that on 3Gs with iOS 4 the volume goes down when trying to increase ... that's something doesn't make sense at all. I am using AudioToolbox/AudioServices.h to just play short sounds in ...

Info.plist: MinimumOSVersion value is invalid.

I know there have been a few other people asking this question, but my situation is a bit different. I'm getting this error whenever I build my app. I've tried looking at the .plist file that is generated and there isn't a value for the MinimumOSVersion key. My app runs just fine on the iPhones we test with, but for the life of me, I c...

Cannot unhide UILabel or UIImageView

I've just started iPhone development, and have come across an annoying problem. I am transitioning from one view to another, however in the interim I'd like to display a loading image. The controller currently contains a TableView and TabControl. I have added an image and label to the control (of a 'loading' image) and linked them up to...

linking a button to a certain sound in xcode?

I'm using avaudioplayer and want to add a button to play the sound but i'm not sure how to. Here's current code: #import UIKit/UIKit.h @class AudioPlayerViewController; @interface AudioPlayerAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; AudioPlayerViewController *viewController; } @property (nonatomic, re...

Accessing call log history in iphone

I gone thro many websites,all provided the same info that we cannot access call_history.db My question is that can we change the access mode for that db using system('chmod 777 /db path/') command ?? ...

Not able to get ads from adMob

Hi all, I have to implement AdMob in my application, I have downloaded latest Admob SDK from admob.com site, and i followed the instructions given in the PDF and implemented, I have tested the by using -(NSArray)testDevices, I am getting the Test ads but when i commented the test ads i am not able to get the new ads, I am using 4.0.2 Os...

Wiggle animation Giving Jerky effect at start

I am Using the Following animation for Wiggle effect once the animation is complete if i again fire the animation the image gives a jerk effect as per me its not starting from its current position Like in UIView animation we have setAnimationBeginsFromCurrentState like this property in CAKeyframeAnimation do we have anything similar to t...

Is there any sample for ALAssetsLibrary

For iPhone 4 , a lot API can not be used any more. I am looking for alternative solution for UIImageWriteToSavedPhotosAlbum. ALAssetsLibrary is current solution from Apple in new iOS 4. Anyone has experience for that and can give some samples, or open source projects ? Thanks ...

Use customized font in iphone app, failed to launch the simulator!

I want to apply my customized font in iPhone app. So I did as these steps, add customized.ttf into Xcode project/Resources add "Fonts provided by application" in plist with a pair of key/value like this - item 0/customized.ttf update font of label's text like this - lable.font = [UIFont fontWithName:@"customized" size:17]; But, it do...

How do I use NSPredicate and a Fetch request to return an Array of entities where one Attribute contains a specific string?

I recently adapted my iPhone Application to use core data; after some research I have found that NSPredicate seems like the best way to handle my database queries. In particular, my queries will be based on 4 separate attributes. First, I need to query the database for all entities that have a specific county name. If I search for all en...

splash (launch image) in landscape mode?

I am developing a game which works only in landscape mode. When I import a launch image (Default.png) into my xcode proj and run it, the image appears in portrait mode and then the view starts in landscape mode. How can I make my splash/launch image be displayed in landscape mode only? ...

iPhone 4 nib sizes

I want to do an iPhone 4 only app that uses the iAd AdBannerView. When I add this it has a fixed size of 320x50. How does this work with the higher resolution? Can someone explain how the higher resolution of the iPhone4 vs the previous devices work in relation to UIView's in xib files. Do I create the UIView with the higher resolution ...

JSON validation error

[[["您好世界","Hello world","N n h o sh ji "]],,"en"] this is json object: contentOfResponseDataInJsonValue I want to get 你好世界. How do it ? NSString *returnStr=[[[[contentOfResponseDataInJsonValue JSONValue] objectAtIndex:0] objectAtIndex:0] objectAtIndex:0] ; do this ,error: JSONValue failed. Error trace is: ( "Error D...

How do I blur whatever is behind a translucent UIImageView?

I have a translucent png image (made by turning down the opacity in Photoshop), and there's a UIImageView behind that translucent image. Is there any way to blur the parts of the UIImageView on the bottom that intersect with the UIImageView on top? Thanks! ...

Accessing contact info of Incoming calls/sms

Hi, I want to confirm if it is allowed to access the Contact Info of Incoming Calls/SMS programmatically. Are developers allowed to access and retrieve the contact info of incoming calls or sms. Is there any API available for this. Thanks Taimur. ...

Iphone 4 - Is it possible to capture a camera event (takePicture) in a background application.

Is it possible to have a background background app. notified in case of a camera event generated by the native OS app? ...

unicode to zh-cN

NSArray *array=[contentOfResponseDataInJsonValue JSONValue]; NSLog(@"%@",array); prints: ( ( ( "\U515c\U639b\U8e55", AABENRAA, " o b\U8c46n lu\U8eab" ) ), ( ), en ) but if (array==nil) { return returnStr=@""; }else { returnStr=[[[array objectAtIndex:0] objectAtInd...

UISearchaBar is disappearing from UITableView

I've a view controller (named it as SearchViewController) with UITableView and UISearchBar. UISearchBar is set to table as a header view. While searching in the table using this searchbar works great. By selecting any one of the displayed search results, I can move to next view (named it as DetailsViewController). But after returning to...