I want to have a single custom section header, with the rest being the default header.
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
return ???;
}
What do I return to just give the default header view?
...
I have table of 15 rows, when i click a button on toolbar i need to apply the checkmarks on all the 15cells at a time. Can somebody help i need it urgently.....
...
I have an application that has a UITabBarController with two tabs, each having its own navigation controller. Now I want to store the state of the application when the user closes it, so that when the user relauches the application will show the same place as the last time before it was closed.
So, in applicationWillTerminate: I have
[N...
My questions is what is the best way to create a Frequently Asked Question tab (section) of my App. I'm using a table view where the data is pulled from a .plist file. The table view has a three level drill down to a detail view where I want the actual answer from a FAQ. Now this is no problem using UITextView. However I need to enable v...
Hello All,
First, Thanks to all for your quick help for any questions asked in this forum.
I just want to know what are the testing tools coming up with Xcode on Mac as i need to test my iPhone application professionally (or) What do you suggest to use debug and test my application using any (or) built-in tools?
Thanks.
...
Hi,
I think I got a good handle on UITableViews and on getting/inserting data from/to SQLite db. I am straggling with an architectural question.
My application saves 3 values int the database, there can be many/many rows. However would I load them in the table?
From all the tutorials I have seen, at one point entire database is loaded ...
I rotate a view by 45 degree on every dragging. Here is my code. Problem here is that the view is rotated only once. After that there is no rotation. What will be the reason? Any help
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimat...
Title pretty much says it all, I want to know how to have a multi-line label on a UIButton.
...
-(NSString *)insertCigStatusIntoDatabase:(sqlite3 *)database{
database1=database;
if (insert_statement1 == nil) {
const char *sql = "insert into SmokerCigInformation(nthDay) values(?)";
if (sqlite3_prepare_v2(database1, sql, -1, &insert_statement1, NULL) != SQLITE_OK) {
NSAssert1(0, @"Error: failed to ...
Hi,
NSString *post = @"&username=adam&password=test";
NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]];
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
[request setURL:[NSURL URLWithStr...
I'd like an image to take up all of a navigation bar. This is the navigation that comes with a navigation based app. It appears on the RootViewController with the accompanying UITableView. I've seen some examples of how this might work.
Set navigation bar title:
UIImage *image = [UIImage imageNamed:@"TableviewCellLightBlue.png"];
U...
Hi All,
I am building a website that runs on IPhone. I am facing a issue where in the application works on browsers and emulator. But its not working on real IPhone device.(Basically my login submit is not happening on IPhone!)
Also the console doesnt shown me any error on IPhone. Have anybody faced such an issue. What could be the issu...
I want to know what the following means. I have to release it? I did not allocate memory
for it. Method is also class method. Any help?
object = [[class method] retain];
...
How can I display RTL text(e.g. arabic) in UITextView?
...
I want to build the 'add user' functionality as it is available in the the messages app, where when the user starts typing a username the app searches for the appropiate user and shows it in a circle as in the screenshot below.
It this a build in functionality? If so, what is it called? I would also like to know how to implement the ba...
Hi,
I am facing a problem while disabling the scrolling of table view.When i disabled the scrolling then the cells are not responding to user clicks,even delegates( like - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath) are not firing .Still dont know how to resolve looking for a solution
Thanks...
I use two PersistenceStores one for saving phone setting related entities and Other for saving User details related entities.
I need to clear all the User details related entity on log off , so i delete the userdetails.sqlite using [NSFileManager removeItemAtPath: error:] method.
After this i setup the managedobjectcontext but i am not...
hi there,
i'm trying to create a website for iphones with the apple typical sliding menue effect.
on safari and firefox on my mac everything works pretty fine, but checking the page on my iphone safari made me wondering.
there's the link to the slider test...
IphoneSliderTest
it would be nice if you could check the page on your iph...
Hi,
I have place a mapview as hidden in my application. The map image need to be obtained from the mapview and send as email. How can i get the map image from the hidden mapview.
Thanks,
...
i want to know that if i have a server how do i send push notification to devices through APNs,do i need to register/authenticate my server to APNs.DO i need to pay for sending Push Notification?Any sample code related to this will help better to understand this.
...