Hi there, I have had an app rejected by Apple stating that I need to implement UIRequiredDeviceCapabilities in my info.plist due to my app requiring a camera flash. I understand the issue but I am not sure how to properly set this key. Do I create UIRequiredDeviceCapabilities as a dictionary or array? and camera-flash as a bool or string...
Can I use NSStream,NSInputStream, and NSOutputStream to send and receive data from a C# application or service? If so, how?
...
I have an iPhone app that I created by copying an xCode project to another location and then renaming the project, executable, product etc. Lets say the original and the copy are app A and app B. If I install A to my phone with an ad hoc provisioning file, it installs and runs fine. The same is true for B. But if I first install A and th...
Could someone please explain to me how to draw a
string using UIStringDrawing instead of using a label? here is my code but for some reason it compiles and the screen is blank...
//
// MainViewController.m
// DotH
//
#define WINDOW_FRAME [[UIScreen mainScreen] bounds]
#define SCREEN_FRAME [UIScreen mainScreen].applicationFrame
#defin...
I am a software engineering student and i signed up for an embedded apple development class
I have Mac OS X Leopard 10.5.3 and i have an ipod touch 4g
I understand that the 4g runs ios sdk 4.1 and i am aware to use certain features i would need that sdk. In addition, i would need atleast Mac OS X Leopard 10.6.2 to use ios sdk 4.1
At thi...
Hi,
Just want to know how to transition from a cocos2d scene to a UIviewcontroller view and vice-versa?
thanks,
mark
...
I have an app. It starts out fine, but the longer I run it, the slower it gets.
Instruments shows only a few hundred bytes of leaks.
How can I find the source of the problem?
...
Hi all,
I've got a tab bar application and I need to know when and what button a user taps on the tab bar as to display the appropriate notifications and such.
In short: How would I go about detecting the index of a tapped UITabBarItem on a UITabBar?
Thanks in advance!
...
Using the PhotoScroller example from Apple, to reuse the memory allocated for views, I cannot get the memory released once the retain count hits 0. Here my code for a better understanding:
This piece is an extract from PhotoScroller
PhotoViewController.m
- (void)configurePage:(ImageScrollView *)page forIndex:(NSUInteger)index
{
...
I want to implement MSAA into the Unity build of a game. Currently I am using this code I got from the Unity forums and it compiles but I can clearly see that it is having no effect in game. Any help would be appreciated.
bool msaaEnabled = false;
CGSize globalSize;
struct MyEAGLSurface
{
GLuint format;
GLuint depth...
For example, the png file is 1200 (h) x 50 (w) pixels, how can I cut the png and loads in 6 UIImages, each 200 (h) x 50 (w). Thanks!
EDIT - thanks to Michal's answer, the final code:
CGImageRef imageToSplit = [UIImage imageNamed:@"huge.png"].CGImage;
CGImageRef partOfImageAsCG = CGImageCreateWithImageInRect(imageToSplit, CGRectMake(0...
i have uiview with a uiviewtablecontroller added as subview, my device starts in landscape mode but tableviewcontroller is always in the portrait mode
...
So, I've been creating an application using the Adobe AIR Packager for iPhone (command line style).
The app consists of a lot of screens that provide various information, and the navigation is handled all in the document class via an event-triggered function that uses a large switch-case statement to determine what screen to go to.
When...
i added overlay (MKOverlay) with custom drawings to the Mapview. The overlay showing fine and i can see the drawings. But when i remove that overlay its not removing perfectly some part of the drawing is still there. What is the reason? im using removeOverlay: for removing that overlay. Any help is appreciated..
...
I want to make an app that uses on the Google Reader API. But I'm finding out that there isn't an offical API for it - is there a problem using the unofficial API, in terms of App Store guidelines/approval? Would other apps (Reeder, etc) use this?
Also what is the best method for logging in? Is OAuth the preffered method? Is using Janra...
I'm not really sure what this is doing. Is dateFormatter only settable the first time?
static NSDateFormatter *dateFormatter = nil;
if (dateFormatter == nil) {
dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setTimeStyle:NSDateFormatterMediumStyle];
[dateFormatter setDateStyle:NSDateFormatterMediumStyle];
}
...
Hi can any one help i am developing a app that can even take advantage of Picup Images when the iPhone is offline. Uploads are stored in a queue and the user can re-enter into online or network area then it will uploads the image to SQL server
Could you please refer any link or document...
thanx in Advance...
...
HI,
I have Parentview-->Multiple childviews.
when i use [self bringSubviewToFront:childview] in parentview, it works fine.but after adding grandchildview to childview,when i use
[self bringSubviewToFront: grandchildview] in parentview, it did not work?any help please?
...
i am making an app in which user's data is send to a server...the data should be in xml format.
presently i have made a string and put all into it...like following format
NSString *s=[[NSString alloc]initWithFormat:@"%@%@",name.text,address.text];
(this is just an example i have made a string with full xml tags including xml version tag...
Hello people,
i have implemented a small viewDidLoad() to show an Picture with autoresizing,
but it doesn't work, could please someone help me and say what is the mistake in
this code in line 3 and 4????
imageView = [[UIImageView alloc] initWithImage:img];
imageView.frame = self.view.frame;
imageView.autoresizingMask = UIViewAu...