iphone

how can i get my text appended to the placeholder programatically

i want to add a variable place holder in my textField and when somrthing is written in textField,that text should be appended to place holder without any change to place holder.CAn someone guide about how should i go about it? ...

Memory management with delegates?

Memory management with delegates, it is my understanding that I don't retain delegates, I am a little unsure about what to do with the delegate if the view gets unloaded (via viewDidUnload) and later recreated (via viewDidLoad)? @property(assign) SomeClass *someDelegate; . - (void)viewDidLoad { [super viewDidLoad]; someDelega...

iphone UIButton hebrew language label

I'm using Hebrew language in my app. This langauge is read from right to left. I'm using UIButton and setting text programatically. Also i'm using following lines of code to set the button labels properties. [myButton.titleLabel setNumberOfLines:2]; [myButton.titleLabel setTextAlignment:UITextAlignmentRight]; [myButton.titleLabel se...

Open Source Framework for Speech to Text on the iPhone

Does anyone know of a good framework for speech to text on the iPhone? I've tried using CMU's VocalKit, but it doesn't seem to be working very well for me. Any suggestions? ...

how to read iphone mail inbox programmatically

hi, i am developing iphone mail based application. which is that if user forgot password, we have to send password to user's mail - id which is user's iphone mail-account . SO we have to close the application and opens iphone mail account to see mail from server. how to overcome this problem. i tried in all ways , but no luck. finally ...

Website the wrong width on iPhone on iOS4 when saved to Home Screen

I have a website that looks fine when viewed in Safari on an iPhone. In iOS3.x you can save it as an icon to the Home Screen and it opens fine. But in iOS4, while it still looks the correct width in Safari, if you open it direct from a Home Screen icon then it's too wide. I've spent a couple of hours fiddling with various settings of t...

Setting volume on Audio Unit (kAudioUnitSubType_RemoteIO)

How to set volume on Audio Unit specifically on kAudioUnitSubType_RemoteIO ? I saw something for kAudioUnitSubType_MultiChannelMixer status = AudioUnitSetParameter(mixerUnit, kMultiChannelMixerParam_Volume, kAudioUnitScope_Output, AU_OUTPUT_BUS, volume, 0); Thanks in advance for your help ...

iPhone NSDateFormatter Timezone Conversion

I am trying to create a formatter that will convert the date format shown to an NSDate object: NSString *dateStr = @"2010-06-21T19:00:00-05:00"; NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZZZ"]; NSDate *date = [dateFormat dateFromString:dateStr]; The issue is the ti...

NSDateFormatter returning nil in OS 4.0

I had the following code working on on OS 3.x NSString *stringDate = @"2010-06-21T20:06:36+00:00"; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZ"]; NSDate *theDate = [dateFormatter dateFromString:stringDate]; NSLog(@"%@",[dateFormatter stringFromDate:theDate]); b...

OpenGL View Frustum -> Position of IPhone

Hi everyone, is it possible to calculate the view frustum according to the position&orientation of the user who uses an iphone? I am currently trying to resolve this problem, because i want to set the camera position at the middle of the screen of the iphone and open the view frustum from there. are there any helping tutorials out ther...

[XCode 3.2.3] iPhone simulator doesn't see my NSString category

Hi, I've an application with the following category for NSString: @interface NSDate(ISO8601Parsing) //This method is the one that does all the work. All the others are convenience methods. + (NSDate *)dateWithString:(NSString *)str strictly:(BOOL)strict getRange:(out NSRange *)outRange; + (NSDate *)dateWithString:(NSString *)str st...

Generating random names from plist

I'm wanting to read a list of forenames and surnames from a plist I have created, and then randomly select both a forename and a surname for a 'Person' class. The plist has this structure; Root (Dictionary) -> Names (Dictionary) --> Forenames (Array) ---> Item 0 (String) "Bob" ---> Item 1 (String) "Alan" ---> Item 2 (String) "John" -->...

NSFetchedResultsController Crashes in 3.0, works fine in 3.1

I have this code, basically copied from Apple's example: - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { id <NSFetchedResultsSectionInfo> sectionInfo = [[[[AppDelegate getAppDelegate] myFetchedResultsController] sections] objectAtIndex:section]; return [sectionInfo numberOfObjects]; } O...

question about switching shader programs (ES 2)

Hello guys, I'm trying to write a rather simple opengl es 2 program. I have two different shaders, one renders a solid color rectangle to the screen, the other one renders a texture mapped rectangle. I want to first draw the solid color rectangle, and then on top of it, draw the texture mapped rectangle. glUseProgram(program1); ...

OAuth Echo TwitPic — Working with a Twitter client on the iPhone

Hey everyone, I've been trying to get Twitpic to work successfully in uploading a picture through my iPhone app. This has worked fine in the past however now they've changed all their auth code. This is what I've got, and for some reason is just giving me a failure: oAuth = [[OAuth alloc] initWithConsumerKey:twitter_consumer_key andCon...

iphone tabbarcontroller PNG

I've run out of places to look for why my image will not display in the tab bar controller. Whether I use Inkscape, Pixelmator, or an antique version of Paint Shop Pro to create and then export the PNG, I get a blue, highlighted square of nothingness or a dull gray square of nothingness. All are 30 x 30, but white on black, black on whi...

Why can't I retain a UIView-Pointer?

I'm trying to pass a UIView to another class - which kinda works, but I can't retain the pointer... in my .h file I declare the view: UIView *someView; I add the property @property (nonatomic, retain) UIView *someView; And in the .m-file I synthesize the property @synthesize someView; Then I have a method to set the view (which...

Warning: The Copy Bundle Resources build phase contains this target's Info.plist file

I've separated a project into two builds and given each of them a plist file. Everything works fine, but I keep getting this build warning: Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'MyApp-Info.plist' I get this when I try to build MyApp. Building for the second target gives the same error (w...

Custom Delegate Example in Objective-c

Hi, I understand using delegates in associated with other objects (i.e. UITextField etc.) But I am trying to find a simple example of setting up / using a custom delegate independently. Any help / pointers would be much appreciated. My understanding so far is: #import <Foundation/Foundation.h> @class TheBox; @protocol TheBoxDelegate ...

Is there a way to find out if iPhone obtained CLLocation by A-GPS, cell tower signal strength or wifi?

Hi, I'm trying to find a property that indicates how iPhone physically obtains CLLocation? As far as I am aware iPhone gets CLLocation via either: 1) GPS 2) Cell tower triangulation 3) Wifi ID and signal strength Can I programmatically refer to something in the publicly accessible libraries to get this? If there isn't a way to ident...