iphone-sdk-3.0

view .doc, .docx, .rtf, .ppt file in iphone using Webview

Hi friends I want to view .doc, .docx, .rtf, .ppt file in iphone. But I guess something is going wrong at my side and its not working for the above formats but my code is working fine for .txt and .pdf files. I have the read the document regarding Webview it states it supports viewing of the above document. below is my snippet for .d...

UISearchBar disable return key

I have a search bar that when the search button is hit it will call a web service. The results of the web service can be quite large. What I want to do is disable the "Search" button until the length of the search phrase is at least 3 characters. This will help in narrowing down the search results. And yes, I've looked at this post. I ...

EAAccessory Notification problem

Hi, I am using a POS device for card swipe. its working good. i have used following codes. - (id) init { self = [super init]; if (self != nil) { NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; EAAccessoryManager *accessoryMamaner = [EAAccessoryManager sharedAccessoryManager]; [accessoryMamaner registe...

iphone sdk - segmentedcontrol.tintcolor not working in OS3

In my app I have a uisegmentedcontrol in the navigation bar, as the right button item. the code: segmentedControl.segmentedControlStyle = UISegmentedControlStyleBar; segmentedControl.tintColor = [UIColor colorWithRed:0.70 green:0.171 blue:0.1 alpha:1.0]; works in OS2 but not OS3...? ade. p.s. my base sdk is 3.0 ...

How can I convert data received from a URL call into NSString?

I am trying to make a simple url call. I cannot convert the bytes into NSString. Following is my code. I get this in my console message; data received from url: †F»∞ -(void)buttonClicked{ NSLog(@"Hello Login clicked..."); NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; request = [[NSMutableURLRequest...

Custom Cell over lapping.

I am trying to use a custom cell, My custom cell is of size 320*220 pixels. My table size is 320* by 1500 which is large enough I have set custom cell's view in scale to fill mode. But when i fill the table using custom cell all i see is first row. i have total four rows to be filld in a custom way. but they gets overlapped and i can n...

Change the background image in cocos2d

Hi all, I am making a game using cocos2d. in that I want to change the background after each second of time. I don't know how to do this in cocos2d. I am having 15 different images and one by one each image will be shown, i.e. after1 second next image will appear. I am new to cocos2d so, If any one can help me??? thank you in advance ...

iPhone 3.1 SDK: UIViewController category is affecting ALL ViewControllers

Hi everyone, iPhone SDK question for you. I've created a UIViewController category to shift a view up when UITextFields are being edited and the keyboard appears, blocking the fields. I found the code online and no doubt you iPhone gurus are familiar with it. The interface looks like this: @interface UIViewController (Shiftable) ...

change launch image(default.png)??

i am quite new to iphone development but i have been given a old application and told to change the launch image(default.png)..i tried to google it but couldn't get much help from it?? how can i change the default image in my old application?? any information regarding it will be really helpful?? ...

warning: unable to read history from "/dev/null/.gdb_history":

I get this warning when I start debugging. Does anyone know why it's looking in /dev/null for my history. I know it's some path which was mis-set somewhere but I do not know which? Any help. How can I see which environment parameters are passed to GDB by XCode? ...

How do I transform an audio clip?

I want to get an audio clip from the microphone on my iPhone/iPad or iPod Touch. How do I transform it? Basically take the wavelength and modify it with sin (30) (or any angle). ...

strange GDB error unable to trace.

Hello all, I am getting this strange error in gdb and i'm unable to trace the exact line of code to trace the bug. Does someone knows about this type of bug? Here is what i get in gdb *** -[CALayer sublayers]: message sent to deallocated instance 0x911c2a0 (gdb) po 0x911c2a0 Program received signal SIGTRAP, Trace/breakpoint trap. 0x0209...

make background dull while displaying activity indicator ??

while restoring some data i am displaying a activity indicator..but i want the background image to become dull or dim a bit so that the focus is on activity indicator..i have seen that in some applications but cant figure out how to achieve that?? ...

Images in the project NOT adding to array - don't know why.

Hi there, I have to sets of images. Each set has 16 images. One set is called 0.png through to 15.png the other is a0.png through to a15.png. In my app, it loads each one dependent on a variable (which by logging, I have proved it works) here is the code [MemoryManager sharedMemoryManager]; NSLog(@"THEME: %@", [MemoryManager shared...

getting the bounds of a cell in groupedtable.

hi friends... how can i get the bounds of a row in a cell in a grouped table..My intention is to adjust the table view whenever the keyboard pops up. wat i have is a groupedtable with each cell having a textfield as subview of its contentview.. how can i get the bounds of the row in a cell, whenever user taps on a particular textfield. ...

how do I add contacts from the AddressBook into a tableview?

Basically I am trying to do the following but I'm stuck. How do I get data from the addressbook and add them to a tableView. (no pickers) I'm only interested in people who have an address in their AddressBook card. (so I want to ignore those entries that only have a telephone, IM, phone, etc). Thank You ...

sqlite3 crashes for second insert statement

My App is crashing on statement (sqlite3_step(insertAlert) == SQLITE_DONE) when executed for i = 1. Can anybody tell me why it is crashing? sqlite3_stmt *insertAlert; textmeAppDelegate *textme = (textmeAppDelegate *)[[UIApplication sharedApplication] delegate]; NSString *insert = @"INSERT INTO alerts (alert_id, email_address, messege...

The right way to manage subviews in a UIControl

(iPhone SDK 3.x:) I have a UIControl subclass that creates a different number of subviews depending on the length of an NSArray property. Please take my word for it that this needs to be a UIControl rather than a UIView. Currently I implement subview management in drawRect, beginning by removing all subviews and then creating the appr...

how to change the shape of UIView

Hi, Is it possible to create a UIView with rounded edges ? ...

How to edit .doc file in iPhone

H Friends, I want to edit the .doc files in iPhone and retain its format. I know its possible as many applications like "Documents to go" supports this. I am able to view this type of files currently. Any hint in right direction would be highly appreciated. Thanks in advance ...