Another newbie question: If I have a UIViewController with a navigation bar visible at the top and a visible toolbar at the bottom, how do I ask the view controller for the coordinates (frame, bounds) of the "visible" area of the view? (self.view.frame and self.view.bounds return null)...
...
Hello,
I'm getting this classic error :
The model used to open the store is incompatible with the one used to create the store
This is how it's implemented :
NSManagedObjectContext *context = [(AppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext];
NSManagedObject *newShot = [NSEntityDescription insertN...
I'm trying to stream audio in .m3u and would like to get the .mp3 components of the file. How would I go about parsing the .m3u?
Thanks in advance!
...
It first happend, when I changed something with the .xib-File and somehow I cannot find anything similiar (enough) on the internet that might help. And of course I did try turning it off and on again!
More details from the alert window I got:
Internal Error
File: /SourceCache/DevToolsBase/DevToolsBase-1691/pbxindex/PBXProjectIndex.m
...
NSArray *tLines = [[NSArray alloc] initWithObjects:
[[NSArray alloc] initWithObjects:@"Matt", @"David", nil],
[[NSArray alloc] initWithObjects:@"Bob", @"Ken", nil], nil];
self.lines = tLines;
[tLines release];
I'm allocing NSArrays within an NSArray, will the nested arrays get released when I call ...
Hello ,
Apparently this is deprecated :
cell.textColor = [UIColor whiteColor];
Does anyone know what the best way to change the color of a Cell Text ?
Edit after comment :
I'm now using this :
cell.textLabel.textColor = [UIColor whiteColor];
but the color is still not changing, see the IB parameters :
...
I am trying to have some controls appear when you push a button and have it disappear when you press a different button. Right now the HUD is comprised of an image view, and some custom buttons in a UIView called "credits". I've managed to have it disappear using:
[credits removeFromSuperview];
How do I have it reappear?
...
When reading Apple's Cocoa tutorial, the window controller is just a regular class and while understand that this is perfectly fine I suppose, wouldn't it be better to subclass NSWindowController?
If I get this right, NSWindowController is a convenience class which already has a lot of the functionality required by a window controller i...
Hi,
I have a custom data container object of type RowOfPlayerData. When I try to display a RowOfPlayerData object in NSLog, the system doesn't know how to display it, so it just shows the address of the object.
I am trying to figure out how i can display, in an NSLog statement, what is at that address so i can use the data.
I am trying...
I need to use something like NSLog but without the timestamp and newline character, so I'm using printf. How can I use this with NSString?
...
I currently have a UITableViewController that parses a JSON response (using TouchJSON) fired asynchronously using an ASIHTTPRequest.
I'm very concerned with the performance of my application.. 6 out of 10 API calls on average would lead to request timeouts and the combined time to fire an API call and parse an API call for 20 objects (e...
This is what I'm using
[[remaining_string substringFromIndex:k] substringToIndex:1]
Is there a better way?
...
Are there any online IDEs that support Objective-C?
The popular ones seem to have neglected this language.
Please include a link.
...
Given a string and a number, this function will produce all possible combinations of n letters from that string.
i.e. If I pass "abcd" and 3, then I should get the following output:
abc
abd
acd
bcd
This is the code
- (void)viewDidLoad {
[super viewDidLoad];
[self expand_combinations:@"abcd" arg2:@"" arg3:3];
}
-(void) expan...
I received a crash report from Apple and I'm trying to determine what happened. I haven't been able to recreate the crash by following their steps and I haven't seen a similar crash in any of my testing. Here is the important parts of the crash report:
9 libobjc.A.dylib 0x00004838 objc_exception_throw + 64
10 CoreFoun...
Hello everyone,
I'm trying to play an audio file in iPhone and iPod with AVAudioPlayer,
the code works fine in iPhone and iPod touch 4th generation, I could hear the music.
but when I test it on iPod touch 2nd, iPod touch 3rd, I couldn't hear anything.
Below is the code I use for playing audio file, is there anything I miss here:
NSS...
After migration, one of my numerical values that should be non-zero now appears as zero. If I don't migrate, the value retains its non-zero value.
I first tried to set a number value in a managed object like this:
[temp setNumUses:temp.numUses+1];
... but that caused an'EXC_BAD_ACCESS' so I changed it to:
int hold = ((int)[[temp val...
Is there a way to set borders to a UIImage. I know how to set it for UIImageView, but my problem is the UIImage that I load up in a UIImageview wont be of the same size or aspect ratio as the UIImageView. Hence Ive kept the UIImageView mode to aspect fit. Giving a border to UIImageView now would border the entire UIImageView rather than ...
REF: XCode
what is the differences between view based vs windows based iphone application?
Where are you going to use view based and windows based application?
Example? what does facebook use?
...
Is it possible to hide the uiwebview keyboard toolbar?(previous/next/done bar) or make the uiwebview use a keyboard that does not have it?
...