I'm designing an iPhone app, which needs to store data into Sqlite database.
One record of the table looks like -
@interface Record:NSObject {
NSInteger primaryKey;
NSString *name;
NSInteger priority;
NSMutableArray *items;
};
Please be noted one column in the record is an array and the size of the array is not fixed....
Hi,
Currently i create 2 views and on the first view, there is a next button, upon clicking it, it will goto the second view.
Then in the second view, i set some value in the label and when i click back, it will go back to the first view.
Problem: now i am back in the first view, if i click the next button again, the label value i s...
I'm adding a segmented control to a navigation bar in my iPhone app. By default the color of the segmented control matches the color of the navigation bar. I want to match the color of the segmented control to other buttons in the navigation bar (like the back navigation button).
Can anyone tell me an RGB value (or a system color) that ...
I'm getting inconsistent results depending on whether I get the image directly from the camera in the callback or choosing it from the camera roll.
In the UIImagePickerControllerDelegate callback method, the UIImage.imageOrientation comes up as UIImageOrientationRight no matter how the photo is taken.
When reading it off the Camera Ro...
i want to update my sqlite database but i cannot find the way to do it,following is the code:
const char *sqlStatement = "UPDATE frame SET fileExist = '1' WHERE name='$variable'";
if(sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) {
NSLog(@"successupdate");
}
from the above code i want my tabl...
I'm using an IBoutlet to get a reference to a Sub-View I added to the main View in the interface builder but since this won't give me access to drawRect: I won't be able to get a context to draw on. Is there anyway I can still get the graphics context so I can draw on the sub view? How would I go about this?
...
While trying out an experimental UINavigationController-based iPhone application, I ran into a problem when the user navigates back to the previous view.
The simple application uses a UINavigationController, onto which new instances of UIViewControllers are pushed.
These instances are all of the same class (in this example, class MyView...
The following code creates me an array of all my contacts in my address book by first name and last name. The problem is, I have one contact that keeps showing up with an empty first name and last name. I can't find that contact in my actual address book. Can anyone suggest how to debug this to figure out the source of the mystery ghost ...
In my application one of my views takes longer than normal to load (it is a scroll view with many pictures) so I figured I would let the user know what was going on while the view was loading. So I put in a progress bar that uses a timer for how long it usually takes to load. The only problem is that when the button is touched the iPhone...
Hi to all,
I have created save.plist in resource folder. I have written some data within that directly (without using coding). I am able to read that data but I cant able write through coding into the same save.plist. By using following code I am trying to write the data but it get stored within my .app plist.
The code is here
NSString...
iam developing RSS Reader, i need to get the items from the given Feed URL.I used Touch XML for this, but this is very slow.Is there any faster way? thanks.
...
I'm trying to create a web-page intended to be viewed by an iPhone OS device. Is there a way to retrieve the current language or some locale-specific data when a user visits on an iPhone OS device? I want to set the web-page language according to the local or language of the device. So, how can I get the language-setting of an iPhone OS ...
is it posible to know the connectionDidFinishLoading function in NSURLConnectionDelegate have done before i setup another new NSURLConnection?
...
I want to implement a description page in an iPhone app. It's the final page in a drill-down navigation structure and needs to include a title, description, icon, large image, date and some buttons the user can click on to activate another application. The information comes from an external source and the title, description and image all...
The following concerns an iPhone app.
I want to use a singleton to handle an asynchronous URL request. I've got that covered but what is the best coding practice way to tell the singleton where to send the response when it is received? I need the response to be returned to the class which originally called the singleton.
Could I pass a...
Activating audio session interrupt audio sessions belonging to built-in applications running in the background, depending on categories and priorities. Deactivating audio session allows other, interrupted audio sessions to resume.
activating audio session ( AudioSessionSetActive(true) ) was working properly,but deactiva...
My RootViewController contains a table view and a navigation bar. Upon tapping a row, another view controller is pushed to the stack, namely SecondViewController. If I click the Back button, SecondViewController is popped out of the stack, but the parent view controller's data is out of date.
How could I reload RootViewController's data...
hello all, i have a very big problem...
i want to shrink picker view's height like it show only one row one column.and the height of the picker view must be equal to the height of row...
please post sample code also if you know how to do this. i m using interface builder to display picker view.
...
My edit button is placed in viewDidLoad:
self.navigationItem.rightBarButtonItem = self.editButtonItem;
It shows up correctly on the nav bar, and tapping this button indeed change it to Done. However, no minus buttons show up in my table rows. Swiping a row, then tap Delete works, though.
Any ideas?
EDIT 1: Here's how I'm doing:
- (...
i want to show a pickerview when i click on a uitextfield not the keyboard and fill the value in text field form the picker view..
any one knows this???
...