iphone

Weird behavior with UILabel and Text propert

Hey All. Im trying to do something that I think is super simple. i have 3 integers - prevgues1 , 2 and 3 and i have 3 UILabels prevguess1, 2 and 3 the ints have 1 less s. When I set the text of the label so prevguess1.text = [NSString stringWithFormat:@"%d", prevguess1] prevguess2.text = [NSString stringWithFormat:@"%d", prevgu...

Count number of lines in textView

I am developing an application where i need to charge the user based on the number of pages. Can anyone tell me how can i derive number of pages if the data is entered as multiline in textView. Thanx in advance ...

[iphone] UINavigationBar UIBarButtonItems much larger click area than required

hey guys- hopefully someone can help me out- iv'e scoured the net for the answer and cannot find one- the UIBarButtonItems added to UINavigationBar have a much larger click area than required- for example, open up any project you have a nav bar with buttons on- click anywhere between the end of the button and the title of the nav bar- ...

Xcode Wildcard characters??

I have a whole list of data that I need to replace some data with. Each line starts with: <select value="12345"> (where 12345 is different on each line) and I want to replace it with: @" How do I do this, I can find the right find and replace algorithm to do this? It would really save me hours. ...

How to zoom web view programmatically?

Hi Is any idea, how to set zoom level of webview by programming ? Thanks ...

How do I send a command to a Mac via WiFi from an iPhone?

How would I send a command to a Mac (which has network sharing turned on) over the Wi-Fi network that both it and the iphone is connected to? In my case I want it to open an application. ...

Using threads in iPhone, do i need them in this case?

I have an opengl game, on top of it i am placing an small view that connects to the internet, retrieves data, with part of that data it connects again to retrieve an image and then displays it inside the view. All this calls are asynchronous. Do i have to also use threads? What should i put inside in another thread? Thanks ...

How do I know if text contains URL links (UIWebView)

I have some text which might or might not contain web URLs, phone numbers, email links etc. which UIWebView automatically detects as hotspots. Question: I want to show this text in UIWebView ONLY when there are one or more hotspots, but as plain text if it doesn't. So how can I detect this in code? Additional Info: JavaScript code belo...

how to add the plus button to the right side of the table view in objective-c ?

I want to add the plus button to right side of the table view to add the content of the that cell in other view. how to add the plus button in the right side of the table view. ...

How to set the zoom value to the map?

I am new to iphone development.I am creating a map application.I want to load the map with a desired location with desired type and zoom.I am able to load the map at desired location by setting the coordinates.i want the zoom to be 18 and the map type to hybrid. - (void)viewDidLoad { MKCoordinateRegion region; region.center.latitude=31...

How do you use a moving average to filter out accelerometer values in iPhone OS

I want to filter the accelerometer values using a moving average, how is this done? Thanks ...

Custom Play Pause Button Iphone

Heya, I'd like to ask what is the best way to achieve the following coding with cocoa for IPhone. As a learning exercise I'd like to make a very simple mp3 player. The part I'm most interested in at the moment is the custom visual components for this player. In particular how would I make a custom play pause button with mouseover and ...

How i create the golbal variable using objectvie-C in iphone?

Hello. Thanks in advance for sending me answer. I m the beginner in iphone software development, I creating the HTTP request using SOAP XML parsing method. I was creating the variable"soapResult" for storing http coming data. I want to use the soapResult value into another class. how i used that value. I going to make it as a global var...

Deploying iphone app remotely

Hi, I am developing an iphone application but I do not have an iphone. But some of my friends have and they willing to try my application (and test a bit) for me. All tutorils I have seen for deploying require to connect through usb. I am already a regeistered developer (I got the licence). Is there a way I can make an installation fi...

UIScrollView: Scrolling doenst work.

I'd like to scroll my content in a UIScrollView. But I think I a made a mistake. // setup view CGRect appFrame = [UIScreen mainScreen].applicationFrame; CGRect frame = CGRectMake(0, 0, appFrame.size.width, appFrame.size.height); self.view = [[[UIView alloc] initWithFrame:frame] autorelease]; // setup wrapper UIScrollView *wrapper =...

a question related to sqlite

hi i have 1 update query in db and it is by use of sqlite int success = SQLITE_STEP(insert_statement); i get success value 21 what s meaningof it? ...

How to do audio latency test in ipone os

How to do audio latency test in iphone os ? I don't have a clear idea about that. Now am reading a caf file like this . NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"tick" ofType:@"caf"]; UInt64 gTotalPacketCount=0; UInt64 gFileByteCount =0; UInt32 gMaxPacketSize =0; UInt32 size; OSStatus err = noErr; AudioFileID fil...

Subview Event handling in UITableViewCell

Hi Friends, I need to create a tableView with customized UITableViewCell that has three small buttons in their view. Is there any way by which I can trap the click events of Buttons as well as didSelectRow of TableView and decide what to do? Please help me. ...

Is it possible to post to Facebook without using Facebook Connect dialogs?

Hello, I would like to post updates to Facebook from my iPhone application. I know that there is a Facebook Connect project, but it requires displaying dialogs for entering user's credentials, dialog for posting content, etc. I would like to be able to get the credentials from application settings and post whatever the user put into UIT...

How to get all the contents of Hashtable and put into NSMutableArray?

hello, How to get all the contents of Hashtable[NSMutableDictionary] into NSMutableArray , which is to be done for iPhone application? ...