Need advice on how to debug this. I'm new with limited environments and have no previous embedded or smart phone programming experience so I could use some clues.
Already aware of:
Instruments, Clanger Static Analysis, manual code review, etc. Instruments seems to be very helpful in general but quite time consuming and freezes up a lot o...
I'm new to iphone development, and I wanted to know. exactly what does the UITouch instance method view do
[touch view];
I read up on the documentation and understand that it returns the view that the touch was 'in', but what if there exists a view hierarchy. I had originally assumed it would return the subview that is furthest up 'fr...
I've been searching and can't seem to find the answer elsewhere - is it possible to detect if the iPod Touch/iPhone has any headphones or other accessories connected to it?
I'm building an app that requires a microphone, and need to know if the "iSomething" has one connected or not, either via the dock connection, or using the headphone...
Hi,
I have a sqlite database and I am adding to it new words. The problem is that I can see them added to a table only after restarting application. The "SELECT" statement doesn't "see" newly added elements before restarting application.
Why may this happen?
I am creating some kind of a dictionary. Here is how I add new items:
const ...
Hello All,
I am writing an iPhone app which connects to a stream and parse bytes from it then create objects.
For exemple, first 11 bytes are the header, next 246 bytes are body..., I am thinking about creating class representing them, like FrameHeader, FrameBody, the question I have is what is the best way to consume data without copy...
I'm not able to find any specific examples in apple's documentation on this. I want to add two to three buttons to a table view programmatically, much like the contacts app does with the send text message/ add to favorites buttons on a contacts's info. does anyone know how to configure this?
...
I have a nib file where I have a view that contains a background image, a button and another image that covers the full screen (a shadow) that needs to be moved to the front.
On the view, I'm creating child views, and after creating those and adding them using [self addView] I need to move to the front the shadow image.
I'm currently us...
I do know the iPhone prefers PNG. But also PNG-24 with alphatransparency? I hope it does!
...
This is a beginner level question in which I'm curious if this is a valid use of a pointer in a statement such as:
NSMutableDictionary *foo = [bar mutableCopy];
I get confused when that is valid versus when I'd need to do the following:
NSMutableDictionary *foo = [[NSMutableDictionary alloc] initWithCapacity:0];
foo = [bar mutableCo...
I am kind of new to making iPhone apps. I have already made a few small ones. But the best way I learn is by completing tutorials (not just broad/general topics, manuals, class definitions, etc).
Are there any good tutorials that just walk through making an iPhone app?
...
Hello,
I am trying to do this:
self.somestring = [@"hardcodedstring" stringByAppendingString:someotherstring];
But I keep getting:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSConcreteMutableData fastestEncoding]: unrecognized selector sent to instance 0x1fb930'
I don't call this meth...
What is the best way to replace a character is a string in Objective-C for iPhone SDK?
...
I'm trying to detect the speed of touch movement and i'm not always getting the results I'd expect. (added: Speed spikes around too much) Can anyone spot if i'm doing something funky or suggest a better way of doing it ?
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
self.previousTimestamp = event.timestamp;
}
- ...
I looking for options on how to track user zooming and panning on a page when viewed in Safari on an iPhone. Safari exposes move and gesture events, so theoretically I can keep a running tally of pan and zoom operations, but that seems like overkill since the browser must track that internally.
Is this information exposed through the D...
I am thinking of going to the pragmatic studio iphone course, but am a little wary due to the price. I currently do contract work and therefore don't have a company that will pay the course costs for me, other than mine of course.
After travel, food, hotel and currency conversion the course runs up to over 3500.
Is it worth it?
...
Hello all,
I'm using an UITextView to hold static content (in Chinese, which means that the characters are all fixed width). I want to let users click on a character in the text and bring up dictionary information for that character. I know all of the issues surrounding the lack of copy and paste and all that, but I'm hoping that there ...
imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:srcAddres]];
Downloading jpeg to my imagedata will spend some time,for example: 2 second, so I want to show an activity indicator until the downloading finished. How can I know when the downloading has finished??
...
imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:srcAddres]];
Downloading jpeg to my imagedata will spend some time,for example:2 second,so I want to show an activity indicator until the downloading finished . How can I know when the downloading has finished?
...
I am unable to find a clear explanation in the Apple docs on what the difference is between a development and distribution provisioning. I am currently using a the development provisioning to develop and test on my iPhone. I intend to distribute the application to my beta tests and I wondering:
Do I need to use distribution provision...
Hi
I am using a tableview with custom cells and want to change the content of the tableview on a button click. I am using an activity indicator while the cells are loading data.
This is how I am creating the indicatorview
indicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(141.0, 190.0, 37.0, 37.0)];
indicator.activi...