What is meant by mach_msg_trap error?
I'm developing an application with core-data. I get this error when ManagedObjectContext if a different thread is "used" the second time.
I've a producer consumer kind of threading system. The producer thread and the consumer thread uses the same underlying sqlite db, but different managedobjectConte...
Hi, is there a way to have multiple lines of text in UILabel like in the UITextView or should I use the second one instead?
Thanks.
...
I working on a utility app. When I run the app in simulator clicking i image at the bottom flips the view in a flash. But when I run the app on iPhone device it behaves abnormally. At times it flips the view in just 1 tap. The other times it does not bother to react even after tapping the image 10 times. I tried with other utility app al...
Here i am using these two functions draw circle in uiview
-(void)DrawLine:(CGContextRef)pDC :(int)x1 :(int)y1 :(int)x2 :(int)y2 :(CGColorRef)color{
int x,y;
if ( abs(x2-x1) < abs(y2-y1) ) {
for ( y=y1; (y2 > y1) ? y<=y2 : y>=y2; y+=((y2 > y1) ? +1 : -1) ) {
x = (x2!=x1) ? (x1 - (x1-x2)/(y1-y2)(y1-y)) : x1;
CGCo...
In Navigation-based App, when i try to load another view which has got implemented UITableView using initWithNibName:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UIViewController *detailsViewController = [[UIViewController alloc] initWithNibName:@"bloop2ViewController" bundle:nil];
...
i am planning start my iphone development, and i have a iMac with tiger 10.4 OS version, planning to upgrade to Leopard 10.5.6 OS X, but i heard apple going to release the Snow Leopard in september, will development environment shift to snow leopard instead of leopard,and Leopard 10.5.7 no longer be used to development?is now a good tim...
Hi
I am using the image picker controller to get an image from the user. After some operations on the image, I want the user to be able to save the image at 1600x1200 px, 1024x1024 px or 640x480 px (something like iFlashReady app).
The last option is the size of image I get in the UIImagePickerControllerDelegate method (when using imag...
Hi all,
I am using a UIWebview for loading the web pages in my application.
Since the UIWebView automatically supports the zooming and pinching effect, so it there any way to control this zooming and pinching effect?
I want to trace the scaling of the view?
Is there any way to handle the zooming and panning inside the UIwebView ?
An...
Hi all,
I have created a subclass of UIWebView , and have implemented the
touchesBegan, touchesMoved and touchesEnded methods.
but the web view subclass is not handling the touche events.
Is there any method to handle the touch events inside the UIWebView subclass ???
Thanks...
...
What i want to do is record the time of when a button has been pressed. All these times will be stored in an array. The program will then run through the array and look at the time values and then highlight the button states at those particular times during playback.
Hopefully this makes sense, whats the best way to do this?! Thanks in ...
I'm trying to port the speakhere example into another app and I'm having issues. I copied all the files, and all the frameworks, but for some reason I get a bunch of compile errors that I've never seen before and thus don't know what to do. The only difference is that i'm not suing IB and so i had to change it slightly.
What does er...
I have a servlet that serves up a plist XML file. What's the best way to slup this into an NSDictionary? I have this basically working with:
NSDictionary* dict = [ [ NSDictionary alloc] initWithContentsOfURL:
[NSURL URLWithString: @"http://example.com/blah"] ];
But then I have no control over the timeout; I'd rather not have m...
I would like to create a 1x1 UIImage dynamically based on a UIColor.
I suspect this can quickly be done with Quartz2d, and I'm poring over the documentation trying to get a grasp of the fundamentals. However, it looks like there are a lot of potential pitfalls: not identifying the numbers of bits and bytes per things correctly, not sp...
I have a UIImageView that I created in the nib builder and was wondering how I would create multiple instances of this same ImageView ? Right now that imageview has code attached to it, so it can move around the screen randomly but I want more than one to spawn in the middle of the screen every few seconds.
...
I'm an independent developer working primarily with iPhone applications, and I'm currently engaged in several different projects. Some are for myself, and others are for one of a number of clients. Because of this, I'd like to have a way to have Xcode set the copyright notice at the top of each source file on a per-project basis.
I've s...
Hi, Im very new to game development on the iPhone... And I have a question:
If I was to unity, how would that work... Would I use objective-c in unity? or is all of it like just click it, and add properties, no code (that may be a stupid question, but im just wondering)
And once your done with the unity app, does it automaticly complil...
I am polling an HTTP API - it returns one item at a time, in real-time (about every 4 seconds). As each item is received, I would like a new UITableView cell to be populated. The full list of received items must remain in a class property, I'm guessing an NSMutableArray. What is the best way to initialize an NSMutableArray as a class pro...
I've taken some stuff from Apple's QUartzDemo project and am trying to modify it.
I want to create a screen with a button that will then call the rest of the stuff to make the rectanlges from that demo.
I've created a UIViewController that handles my initial view. It has a start button on it. The start button code is:
- (IBAction)st...
Hi,
First thanks so much to users in this site for many answers I stumble upon when investigating bugs...
I am working now a few months on a Obj-C project (IPhone), today I made a big discovery (in a beginners PoV) while working with a singleton.
In short if you are accessing a @property with self.someProperty it will use the "(nonato...
I would like to change this code so that if the textName.text contains the word "Blue" it will say @"Wrong color"
This code implies only that if the word has no letters it will say "Wrong color". How can I change it to a specific word (blue) instead of "length] == 0)"?
if([textName.text length] == 0)
{
text = @"Wrong color";
}
Thank...