iphone

sqllite3 prepare insert query in iphone programming

(BOOL) addticket { NSString *event=@"max"; NSString *venue=@"tvm"; sqlite3 *database; databaseName = @"smbhDB.sql"; sqlite3_stmt *addStatement ; NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDir = [documentPaths objectAtIndex:0]; ...

UITableView: Dynamically determining number of sections

I have a medical app for the iPhone that I'm working on, where a user creates timestamped entries for a series of tests performed, which are stored in sqlite for retrieval and subsequent drilldown. In my model class, I have a property uses an NSArray that is populated with these entries, which gets updated as new additions are made in th...

flip views in iphone?

hello all i have a simple view which has a button. on the button's tap i am loading a new view which contain a navigation bar and a UITableView.is there any way i can animate a flip effect on button's tap and load the view and also vice versa? ...

NSURLConnection is run many times

I connect asynchronously with server each 5 seconds. The URL is the same, but POST-body is changed each time. Now I create NSURL, NSURLRequest and NSURLConnection from the scratch each time. I think it'd be more effective to set connection once and just use that one further. I am a newbie and not sure if that possible. There is no muta...

Store an encryption key in Keychain while application installation process

I need my application to use client's phone-number to generate unique ID for my web-service. Of course a phone-number is unique, but it must be secured. So it can be implemented with symmetric encryption (asymmetric will be later, because leak of resources), but I do not know where to store a encryption-key. 1. I do not know why, but s...

retriving integer value from the UITextField into a NSInteger variable.

UITextField *textField; NSInteger intRollNumber; I want to take rollNumber as input from the textField and store the value into intRollNumber . How i do that? Because I am unable to convert the string into integer. ...

how to create this customized UI?

hello all , i m new to iphone development i want to create a view like this.. 1.home screen contains a. a navigation bar b.a uiimageview c.a toolbar(with 4 buttons) 2.new view contains a.navigation bar with back button which leads to home screen. b.a UITableView. 3.another table view with navigation bar leads back to (2nd view) note ...

iphone application icon was blur when show on the itunes store

my icon was blur when show on the itunes Store but fine in iphone's locally appstore,my large icon format is: pixel:512X512 format:png dpi:72 can anybody point to me what is the reason of icon getting blur in itunes store since i have followed all the spec required by apple alr ...

Pass the data the user enters into our URL, receive the XML

'pass the data the user enters into our URL, receive the XML ' How this can be implement ...

How do i change color of letters of sectionIndexTitlesForTableView?

Hello Everyone, Hope you all are fine and also in best of your moods. I have a little problem kindly help me to get its solution. my Problem is: I am using vertical search in my application, using method sectionIndexTitlesForTableView() of tableview i get all Character listed from top to bottom at rightside. But this letters have fix...

What's the most optimal way to get a random floatingpoint number between floatA and floatB?

I have an interval consisting of two float numbers, and need to generate 20 random numbers in a look that are somewhere inbetween this interval defined by the two floats. Lets say, for example: float a = 12.49953f float b = 39.11234f float r = //best way to get best randomly numbers between a and b The random number may be == a and =...

iPhone MoviePlayer example, where did the button and label come from

Hi all, I had working with the iPhone example named "MoviePlayer" where it show you how to add an overlay over a MPMoviePlayer. This works great, but I can't find where did they set the button and label? how can I add some controls of my own? Thanks! ...

Anomalous results getting color components of some UIColors

I'm trying to extract the rgb components of a UIColor in order to hand-build the pixels in a CGBitmapContext. The following sample code works fine for most of the UIColor constants but, confusingly, not all. To wit: CGColorRef color = [[UIColor yellowColor] CGColor]; const float* rgba = CGColorGetComponents(color); float r = rgba[0]; f...

Zoom Loupe on UIImageView

Does anyone know of a way to implement the zoom loupe functionality of a UITextField on the iphone in a UIImage view? Part of the app I'm building allows a user to draw a line on a UIImage, a process that might involve precision positioning of the points. In order to help the user, I want to provide the zoom loupe as seen when positioni...

iTunesConnect acces to download stats for my client

Hello, I've developed an app for a client and would like to give him an access to my iTunesConnect in order to access to the download stat for his application. The problem is that if I create a new user and set permission to only see reports, he will be able to get all stats... And I don't want to get stats manually each day. Do you ...

What's the easiest way of implementing own functions that are used all over the place in an large project?

I want to create a set of functions, that make life easier. I use them in about 60% of all project files. I wonder what's the most efficient way of including these in the project. I think about creating one file where they go in and including this file in every file where I need them. On the other hand, it would be cool if I can include...

Sound recording iPhone app - bad quality

Hi, I am making an iPhone-application that records sound, but my problem is that the quality of the sound is very bad, it is a lot of noise. I use code quite similar to the Speak Here sample app. I get bad quality in different formats, AIFF, CAF, AIFC. Anyone experienced the same problems or have any suggestions? ...

Hide keyboard when losing focus off UISearchBar

Hi, I'm not sure why this is so hard. I have a UISearchBar at the top of my page. When the user types into that UISearchBar, it will automatically filter the results in the UITableView that is below the search bar. There is no need for a Search button since I search when keys are pressed. The flow of the application is that the user ty...

Does it matter if there are unused functions I put into a big CoolFunctions.h / CoolFunctions.m file that's included everywhere in my project?

I want to create a big file for all cool functions I find somehow reusable and useful, and put them all into that single file. Well, for the beginning I don't have many, so it's not worth thinking much about making several files, I guess. I would use pragma marks to separate them visually. But the question: Would those unused methods bo...

Get text of button from IBAction - iPhone

When an IBAction is called: -(IBAction) onClick1: (id) sender; What is passed in the sender? Since it's hooked up through the IB, I'm not really sure. My question is how to get the text of the button to be the passed object (NSString most likely) so that I could call it inside the action implementation. -(IBAction) onClick1: (id) s...