I am trying to load an extension to sqlite3 for use within iPhone application objective-c code. I successfully compiled the c file of new functions into a dylib named libsqlitefunctions.dylib. Here is where I am a bit lost. I call sqlite3_load_extension as follows:
char *error = sqlite3_malloc(MAX_SQLITE_ERROR_MESSAGE_SIZE);
const char ...
I'm just starting out with Core Data and right now I'm building my data model. I need a UIColor attribute for my entity, but the type dropdown for the attribute doesn't have an option for this. Do I set it to Undefined or what?
Thanks
...
Hi guys,
my question is:
I have a dictionary with one object for each character of the alphabet. Within those objects, there are all values for a specific character.
Example:
alphabetDictionary
a
apple
alien
b
balloon
ball
I now want to count all entries within this dictionary:
apple
alien
balloon
ball
-> 4
Usi...
Hi, simple existentialist question that google can't answer me:
When and NSOutlineView send the message outlineView:setObjectValue:forTableColumn:byItem: to its data source, will it always reload its data?
I have [sourceList reloadData]; as the last line of that method's implementation, but it doesn't seem to be necessary.
Cheers
...
Hi everyone!
I'm looking for method to add gradually fading or maybe blured border (I don't exactly know how to name this effect) to arbitrary UIView. I don't need animated effect, I need static effect, for example I my UITableView border being partially transparent. I've made the example: http://i46.tinypic.com/14nz76f.png, so you can...
Hello, I have the code to add a view [self.view addSubview:RootViewController.view] and it gives me the error error: accessing unknown 'view' class method
here is a bunch more stuff that might be helpful.
CompileC build/iTracker.build/Debug-iphoneos/iTracker.build/Objects-normal/armv6/NewLogViewController.o Classes/NewLogViewController...
Hi,
The situation:
I fetch a complete table from my sqllite core data database and show it in a TableView like this:
NSEntityDescription *entity = [NSEntityDescription entityForName:@"MyTable"
inManagedObjectContext:managedObjectContext];
The Challenge:
How do I get the EntryID and fetch ...
Hi
I created a UITextField in code, now I have now idea how to define the keybaord that should appear ? I just get the standard keybboard, but I need a numberpad ?!
Thanks
...
I'm about at my wit's end over this issue, due to hitting a good dozen other website (as well as this one) looking for a straight-forward answer to my problem...
First off, I'm trying to figure out a way, given a starting image created via [UIImage imageNamed:] to add decorations based on processing over time. (Think of a heat map.) I...
If I had a date picker within an action sheet and called the following line:
[datePicker setDate:newDate animated:YES];
And then my app hides the action sheet the date picker is within, is there anyway to set up a animation delegate so that the user see's the animation of the date picker first and then hides the action sheet? I have d...
I've got a uiview subclass where I'm trying to draw a rounded rectangle with a drop shadow. Though it draws both elements, I can see shadow through the rounded rectangle fill. I'm new to CG so I'm probably missing something simple (though it doesn't seem to be the alpha of the fill which is set to 1). Here's the draw rect code.
- (vo...
I have a view controller that allows users to add an nsstring to an array that is the source for a uitableview directly underneath the add string uitextfield. I want to add the string to the uitablview as soon as its added to the backend array. ive tried a couple different things and im not really sure how to do it. my feeling is that i ...
I'm checking out the default Xcode template for an iPhone Core Data project. In the method that returns the fetched result controller I see this:
- (NSFetchedResultsController *)fetchedResultsController {
...
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForN...
Hello all,
I have a feeling there is a simple way to do this. I have a number between 1 and 100 and it is stored in a variable called firstValue. This variable is then put into a UILabel. When the user exits my app, I want this firstValue to be saved so that when the app is loaded by the user this number can be re-inserted into the UILa...
I am going insane! This is a simple app with two Views. FirstView is a text field with info button to flip to SecondView. In SecondView I have 6 buttons for background color choice. When button is pushed the color of background changes perfectly but cannot make it also change background color for FirstView. Any help would be GREAT! ...
I've ran Build and Analyze on my XML parsing code and found out the following:
How could I fix it?
...
Hi guys
I'm working in cellForRowAtIndexPath, and I'm trying to embed a textview into the cell. Now, the embedding part is all well and fine, but I am getting the strangest problem when I try and load the textview in all but the first row.
Note: I want The TextView in all but the first row in my table.
The problem is that when I implem...
I declare my array in my *.h file:
@interface aViewController: UIViewController
{
NSMutableArray *anArray; // You will need to later change this many times.
}
@end
I alloc memory for it my *.m file:
-(void) viewDidLoad
{
anArray = [[NSMutableArray alloc] init];
}
I click a test-button to load my array (eventually it will...
I am having a crash in my CALayer subclass when I remove myself as an observer in -(void)dealloc:
- (void)dealloc {
[[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:@"showColorLabels"];
[colorLabel release];
[_color release];
[super dealloc];
}
An exception is thrown. It says that self has not been added as an...
Hey.
I use FBStreamDialog to let users publish on their news feed.
[fbStreamDialog show];
makes the dialog view popup, the user can press cancel or submit that message.
Now...my problem is that both buttons close the dialog view and call the delegate method dialogDidSucceed.
How do I find out which button was pressed?
Its very i...