So I've read some stuff about multithreading and NSOperation and wondering how I can use that to improve my app. Using Instruments I have isolated a few places where my app could definitely use a speed improvement. My question is, are these kinds of things suitable for another thread using NSOperation?
Drawing a view: I have a rather co...
Hi everybody.
I'm pretty routined in writing iPhone applications with common UIViews.
To extend my skills, I wanted to write a simple 2D game where a player needs to break complex wall structure with limited shoots.
One shot should demage the wall, but not break through. A second shot at the same position would break through the wall.
...
For the pch file I get these errors:
/Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:6:34: error: Foundation/Foundation.h: No such file or directory
/Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:7:24: error: UIKit/UIKit.h: No such file or directory
Here's the fi...
Hi IPhone Developers,
I am currently developing a game for iPhone/iPod touch. For short sounds I am using the AudioServicesPlaySystemSound function. I know that I can't control the volume of these sounds programmatically, but on my iPod touch 3rd gen these sounds respect the overall sound volume. On my new iPod touch 4th gen, these soun...
I am subclassing NSURLConnection, and used MGTwitterEngine as a base to help me get started. That may be irrelevant. However, I noticed in their code they don't use @property or @synthesize for their ivars. They have wrapped the ivars in accessor methods which look like this:
- (NSString *)identifier {
return [[_identifier retain] aut...
Hello,
I am trying to pull data from a website using objective-c. This is all very new to me, so I've done some research. What I know now is that I need to use xpath, and I have another wrapper for that called hpple for the iPhone. I've got it up and running in my project.
I am confused about the way I retrieve information from th...
What do you use to draw iPhone ui and write iPhone requirements specification?
...
Hello kind people,
I will be very impressed if we manage to solve this.
I'm a beginner programmer following the first chapter tutorial in the O'Reilly book "iphone 3D programming". After trying to run the initial practice program I get the following error:
Detected an attempt to call a symbol in system libraries that is not present on...
I'd like to generate some revenue for my OpenGL based iPhone app w/ Apple's iAds. Everything in the app is done w/ OpenGL including menus, buttons etc. How do I add iAds to my app?
More info: I've looked over sample code from Apple and I'm still stuck. Just fyi I currently don't use any view controllers. All I have is a "Window". I...
Hello there - I have an in-app mail composer. I would like to add an image at the bottom of the email body with a http link wrapped around it (usual business )
The image is in my resources. My goal is to add the image and have link the image to the app store.
How do I do that?
That's how I am attaching the image right now:
NSString *...
I have 2 views which the user can scroll between. I have page control working so I have the 2 dots at the bottom of the page which show the current page. I want to be able to disable this if the user changes a setting. I can't seem to find the code to do this? I guess it would be nice if the 2 dots remained but were greyed out, but this ...
Hello,
I am new to iPhone app development. I have an app created in XCode 3.1.3 and need to do 2 things;
1. Test it on my iPod touch (Latest OS: 4.1)
2. Submit it to the app store.
My question is, can I do both these things given that I have XCode 3.1.3 OR do I have to upgrade?
Also in case I need to upgrade, is it possible to download...
Hi guys,
Running into a problem with UIWebview, it doesn't seem to react to gesture recognizer. I would like to get a popover to appear whenever I do a long press on a link (or image) with different actions.
Any help would be greatly appreciated =). Thanks.
...
I have a custom UISegmentedControl that I placed using IB into a Navigation bar much like it is done in the iTunes App. When the device is rotated in landscape mode, I want to repopulate the segmented control to make use of the more space I have there.
I do:
CGFloat controlWidth = self.frame.size.width;
where self is the custom UISegm...
Hello all.
I have 3 subviews in a UITabBarController. The first tab's view has objects which are manually moved when willAnimateRotationToInterfaceOrientation is called. However, if another tab's view is visible on rotate, willAnimateRotationToInterfaceOrientation is never called, and the items on the first tab's view are not in the rig...
Looking at Google Calendar on my android web browser I noticed the time selector looks like a native Android selector as opposed to looking like an HTML selector drop-down. To see it:
go to http://calendar.google.com/
Touch the plus button at the top right
Touch the time drop-down
You should see the native-looking selector.
What HT...
Hi Folks,
I have two applications that I would like to build into one. The first is a simple table view that drills down to a detail view when a cell is clicked. It works fine. It has a TableView and a Navigation Controller, so I can go back and forth between cells. The problem is I don't want an App that shows a table straight away! I ...
Hi, i am using the code below to implement a volume view into a cell.
[[cell detailTextLabel] setText: @""];
MPVolumeView *systemVolumeSlider = [[MPVolumeView alloc] initWithFrame: CGRectMake(100, 10, 200, 100)];
[cell addSubview: systemVolumeSlider];
[self.view addSubview:cell];
[systemVolumeSlider release];
//[MPVolumeView r...
Can an iPhone app be made to stop all calls and text messages for a specified number of minutes, that is, prevent the user from making or getting calls and messages? Can an app turn the device off temporarily? Context: help kids to concentrate while doing their homework/studying and not be interrupted with calls and text-messages from th...
I want to have a custom loading menu made from a series of stills, that loops 3 times and then reveals a picture. Currently the picture is visible from the start. I want to use isAnimating to find out when the loading animation has stopped, and either change myImage.hidden off, or have the UIImageView initially containing a white image, ...