I have a table view where cells can display a variable amount of information. For example, the first cell could display 2 labels, the next cell 5 labels, and the third cell could display 1 label. The cell contents are stored in managed objects.
I would like to make this data driven, where I have a plist to configure the cells. I'm think...
Hi,
I'm trying to create an iPhone piano app.
I have created 14 different UIImageViews in Interface Builder, to represent the keys. With touchesBegan, touchesMoved, touchesEnded and touchesCancelled I then tried to play the audio files.
So once the sound is played when you move your finger (touchesMoved) I have solved with a NSMutableA...
Is there a way to get rid of the highlight that is automatically added to the icon when creating an iphone app, or will I have to compensate by hand in PS?
Thanks
...
For the following code, of the two comment preceded lines below, only the first works.
NSManagedObject * Event = [NSEntityDescription insertNewObjectForEntityForName:str inManagedObjectContext:app.managedObjectContext];
//Work but strange
[Event setValue:[NSNumber numberWithInt:buf4[v+h]] forKey:value];
//Error
Event.value= [NSNumbe...
Hello,
Assume you have an entity called Library and each Library can contain Books. It is possible for a Library to have no books at all. Is it possible to filter a fetch request so I only retrieve the Libraries that contain books?
I have read that you can use the SIZE tag for NSArrays (for example, myArray[SIZE]) in an NSPredicate, bu...
I am displaying a pdf page on the CGContext using the code
- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)context
{
CGContextSetRGBFillColor(ctx, 1.0, 1.0, 1.0, 1.0);
CGContextFillRect(ctx, layer.bounds);
CGContextTranslateCTM(ctx, 0.0, layer.bounds.size.height);
CGContextScaleCTM(ctx, 1.0, -1.0);
CGConte...
Looks like its related to NSURLConnection, but not sure how I can diagnose?
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x1ab98c00
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x000027da objc_msgSend + 18
1 CFNetwork 0x000...
I'm having a few teething problems with coredata, but feel it would clear things up for me greatly if someone could explain some simple cases to me.
I want to put my model into coredata, and at a most simple case take advantage of undo/redo. Thing is, all the examples I see tend to store either strings or integers. What if I have a clas...
If followed the apple tutorial for setting up application unit tests.
I have two issues with "Application Unit Tests".
The first is that I get a warning running application unit tests (see below).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2.2/Symbols/Developer/Library/PrivateFrameworks...
I'm part of a team developing a fairly large iPad app and there are many different classes we've created as a result. The trouble is some of the methods are now pretty much obsolete and I don't want simply remove them yet as I know some parts of the overall system use the methods... but there are better (newer) variants available which ...
I am trying to add core data functionality to an existing project.
I added a data model file named "myProj.xcdatamodel"
My code crashes in the following when getting the managedObjectModel
What is the "momd" file? where can i get it or how can i create it?
When i read the path it returns null and crashes the app.
NSString *modelPath = ...
How can I diagnose this error?
Application Specific Information:
MyApp failed to launch in time
Elapsed total CPU time (seconds): 4913.443 (user 3868.270, system 1045.173), 56% CPU
Elapsed application CPU time (seconds): 0.010, 0% CPU
Backtrace not available
Unknown thread crashed with unknown flavor: 5, state_co...
Today under developer.apple.com member center > iOS Provisioning Portal > Provisioning menu
when clicked only brings up the "Development Provisioning Profiles"
it has to "Distribution Provisioning Profiles" !
Any idea why this is so? Any change in the way we need to create "Distribution Provisioning Profiles"
...
I am developing an application which demands around 100 images or maybe more to be pre-inserted into the Core Data database along with other related information.
Now I can easily add other data by just writing a few lines of code but for UIImages I am unsure how to do it without writing a lot of code. I was wondering: is there anyway t...
I need to create an XML-RPC server on the iphone for testing purposes. Is there is a library I could leverage?
...
I've created a table view of "log entries" which are organized into section based on the day they were entered.
I'm using Core Data so in order to do this I defined the following readonly calculated property in my NSManagedObject:
- (NSString *)formattedDay {
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setTimeStyl...
Hi,
I have one line of text that is too long to be displayed in one single line in a UILabel, so I switched to a UITextView. I wanted to display that text still in one line, and be able to scroll horizontally, but instead, the UITextView will wrap the text into multiple lines, and allow me to scroll vertically. So, for the text "This is...
I have 5 different animations that animate then disappear one after another. Is there a way to put them on an infinite loop so animation #1 begins and ends, then anim #2 begins and ends etc..? the whole process then would repeat on an infinite loop.
I have the animations in separate blocks on delays. I'm guessing that there is a better ...
I have a UIViewController that contains a UITabBarController with three tabs (each tab being a UINavigationController).
The problem that I am having is that in the simulator and the device, going from one tab to another takes a few seconds. I do not (yet) have a way to measure how long it takes, however, it is noticeable.
I wanted to ...
Hello,
I have a question regarding nibs and how detail views are created in professional apps. I want to make an app that loads different uitextfields for each nib that is selected from a table. These textfields contain some logic that is different from each. I wanted to ask if it's possible to make one nib and change the data from thatt...