I did the the following steps:
Create a view-based iPad application in Xcode,
Open the .xib file, add an UIImageView, set an image for it(a 200x100 image).
Launch the program by Run>Run with performance tool>Leak
And there are two leaks reported:
Leaked Object # Address Size Responsible Library Responsible Frame
Malloc 128 Byt...
I have noticed that a problem in my app is caused because the Datasource methods of the UITableView are called before viewDidLoad.
The problem is that the UITableView doesn't have the correct amount of rows, it gets the amount of rows from the NSFetchedResultsController but the performFetch "function" for that is called in the viewDidLo...
I am using mogenerator.I am getting CoreData error as follows:
Failed to call designated initializer
on NSManagedObject class 'ClassName'.
Anybody please help me to solve this error.
...
Hi
I'm getting a warning when I set the delegate for UIImagePickerController. It's because UIImagePickerController and its parent UINavigationController both have delegates that can be used. The code works fine but just wondering how to handle delegates and inheritance properly and lose the warning.
So basically I've created my own MyI...
I am writing an asp.net MVC app that drives an IPhone application.
I want the Iphone to send me its UUID looks like this:
2b6f0cc904d137be2e1730235f5664094b831186
On the server I want to generate a Guid:
466853EB-157D-4795-B4D4-32658D85A0E0
On both the Iphone and the Server I need a simple aglorithm to combine these 2 values ...
operator class:
#import <Foundation/Foundation.h>
@interface operator : NSObject {
int number;
}
@property int number;
@end
@implementation operator
- (id)init{
self = [super init];
if (self) {
[self setNumber:0];
}
return self;
}
@synthesize number;
@end
main.m:
#import <UIKit/UIKit.h>
#import "operator....
I just wondered if comments are included in binaries, or does the compiler know to remove them?
...
I have an uilabel setup with IB and with this code:
// setup label
sv.text = @"When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nat...
I have a custom view, where in I draw some numbers inside squares. All this is done using Quartz programming. During an active call, the status bar gets displayed at the top and my view shifts to the bottom. Until now, it's fine. But when I tried to redraw the view based on touch events on the squares, the position of the squares is mess...
How is it possible to make a table view inside a new tab that features cell items that have been disclosed with a detail view? I want to have a button in these detail view that allow the previous selected cell and the detail view to be selected and added to this new array that can be displayed in an iphone table.
here is the code i have...
Whenever I add an accessoryView to my UITableViewCell, it doesn't carry the background color across? I'm setting a UISwitch as my accessoryView, and the color I have set in the cell.backgroundColor property only effects the contentView and not the accessoryView.
I have tried everything to set them to the same value. I tried to set the ce...
answer.h:
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "operator.h"
@interface answer : NSObject/* Specify a superclass (eg: NSObject or NSView) */ {
IBOutlet operator *operator1;
IBOutlet operator *operator2;
IBOutlet UILabel *answerLabel;
IBOutlet UISegmentedControl *operation;
}
- (IBAction)compute:(id)s...
Hi,
I am trying to grab the data from the database and display all the values in sorted order grouped into sections from A-Z and also my UITableView is indexed. In this case the indexes are A-Z. The strange thing that's happening is when I get all the values from the DB onto the table, I see that values under section 'B' has some values...
Hey All,
I am trying to display the data on the UITableIndexed View and I deleted the empty sections in the table.Now the problem is I added a gradient image as the background to the UITableView, it displays fine for all the cells, but when there is an empty section it displays a row with white color with which the appearance of the tab...
Hello,
where can I find high resolution version of standard iPhone UI elements (like UITabBarContacts.png). I have found low resolution version of icons on some site. I need them becasue I would like to upgrade my app for iPhone 4.
Thanks!
...
Hi,
i created an app from the navigation-based template given by apple. Now i want to add a second navigation controller to my application including a new UITableView. Can anybody show my how to do this? Thanks!
...
Hello,
I am trying to solve a problem considering update of an view.
First I switch to another view by using:
- (void)viewSettings {
settingsViewController = [[SettingsViewController alloc] initWithNibName:nil bundle:nil];
[[self viewController] presentModalViewController:settingsViewController animated:YES];}
Which is a delegate Me...
Hi I have a simple database app on the iPhone that uses core data. I was just looking at some Flurry exception reports and I'm seeing the following error:
NSInternalInconsistencyException: no section at index 4
The number varies in the reports, but it is always the same message. Any idea on what this means and where to start my debuggi...
I have had a customer contact me about a bug in my application which I believe is related to my use of Core Data. This is currently only a theory as I have not be able to re-create the issue myself.
The problem appears to be if the user creates a new entity object and then edits the entity object straight away it does not seem to persis...
I'm creating a form and was wondering if anyone knows how to retrieve a UITextField value from a table cell.
- (IBAction)saveForm:(id)sender {
NSLog(@"TextField Value => %@", titleField.text);
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
...
switch(indexPath.section)
...