Something I'm not very clear on is whether I should/could use interface builder to create reusable game sprites. For example, if I have a ball that I want to create an indeterminate amount of at run time, should I be creating a nib file (and either attaching graphics in IB or drawing them in drawRect) with it's own viewcontroller class a...
I just want to test the app in a real device, but it seems the SDK does not match, I only have a 10.5.8 Mac and can not upgrade to 10.6 rightnow, then I could not get the lastest SDK version 4.
Any method to do that?
...
hi ,
in my application i am collecting latitude and longitude when user dialed call or receive call at that time i am calling one function with NSTimer with delay of 15sec , and again i am collecting latitude and longitude.
the problem is that while i am calculating distance between them it give minimum distance 0.87 miles or 1 mil...
Hi,
Im a using the MVC pattern for a while on different frameworks such as (swing, android, gwt ...)
Now, I'm learning the iPhone framework and I am quite surprised about MVC implementation. The questions I am asking are about the view and controller interaction.
First of all, that's the way I conceive the MVC pattern :
The view and...
Is there any way to modify the frequency response of the line in microphone through software? I ask because I would like to record a low-frequency signal (~10 Hz) on the iPhone, and the way things stand currently, the signal would be completely canceled. I am aware of hardware solutions to overcome this, like modulation, but was wonderin...
i have a string strored in str variable i want to find string length which is available in str variable
i hav tried with strlen(str); its not working...
...
Hello,
I'm trying to use Mac OS X 10.6's mediastreamsegmenter to take the audio input of my mac and turn it into a stream that I could listen to on the iPhone.
I've read this and the related man page:
http://devworld.apple.com/library/ios/#technotes/tn2010/tn2224.html#MEDIASTREAMSEGMENTER
but when I do something like this:
mediastre...
Hey guys,
I have a little issue here. I need my users to be able to select 4 different points in an image, and then, based on those points, draw a rectangle and crop the image to that rectangle.
Now, I've tried the method in UIImagePickerView that let's you edit the image, but I find it's very limited, and isn't exactly perfect for my n...
My code leaks but I do not know exactly what am I doing wrong. Simply I have a function that takes array with NSStrings and outputs NSString formatted as CSV.
Here is my code:
-(NSString*)generateCSVfromArray: (NSMutableArray*) reportEntries {
NSString* accumulator = [NSString stringWithString:@""];
for (NSString* string in r...
Hello all,
I am going insane with this one - have looked everywhere and tried anything and everything I can thinks of.
Am making an iPhone app that uses AVFoundation - specifically AVCapture to capture video using the iPhone camera.
I need to have a custom image that is overlayed on the video feed included in the recording.
So far I ...
Hi
I'm pretty new to the objective-c language (less than three month) but is something that i really need to understand.
Suppose a controller (in a iOS environment) that manage a table view for input data from the user. The table must have a editable cells and some features for make the value selection easier, for example a button that...
I've created a UITableView with a search bar. When first accessing the TableView and searching everything works fine. The problem arises when the view unloads and you go back to the search option and try to search again.
- (void)viewDidLoad {
[super viewDidLoad];
self.listContent = [[NSMutableArray alloc] initWithCap...
Hello fellows,
I have the following problem: my app has a table view with subtitle style and a search bar in one tab and if I search something the subtitile is in the wrong spot (ex. I have Object1, Object2, Object3 with ObjectSubtitle 1, ObjectSubtitle and ObjectSubtitle3. If I search for Object2 it's subtitle will show ObjectSubtitle1)...
I need to support only portrait orientation in my app. How can I do it? I have tried adding
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
and
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrienta...
I am looking to extend an iPhone game by adding support for networked multiplayer capabilities (preferably over WiFi). How would you suggest I add this functionality to this application?
...
I have never seen this issue before, its very strange. Just wondering if anyone else has come across this too.
I have added a sprite to my game, its supposed to be the top left corner of a box to put text on to. I want to make it scalable without loosing anything so i have it broken up into sections. In the image above the one on top ...
Hi,
I want to be able to search for a String without any character in it. The problem is, that the default keyboard does not show up the search button, when there is nothing written in the UISearchBar.
Any idea?
Thanks,
Markus
...
Hello,
I'm trying to draw some lines inside my custom UIView.
From what I can see, to save messing around with CoreGraphics, I can use UIBezierPath (i've done similar with NSBezierPath on the Mac).
I have some code that tries to draw the lines but I get output errors and can't find a decent reference with some sample code to illustrate ...
Hi everyone. I have CLLocationManager in app. So what i need is method to know did a user allow or decline current location. According users answer TableController adding value in table in specific way. I tried to [sightsTableView reloadData]; in
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLo...
I'm trying to use the new AVFoundation frameworkt for taking still pictures with the iPhone.
With a button press this methos is called. I can hear the shutter sound but I can't see the log output. If I call this method several times the camera preview will freeze.
Is there any tutorial out there how to use captureStillImageAsynchronous...