I'm using the AV Foundation classes to capture the live video stream from the camera and to process the video samples. This works nicely. However, I do have problems properly releasing the AV foundation instances (capture session, preview layer, input and output) once I'm done.
When I no longer need the session and all associated object...
Is there any grid-like control in iPad SDK?
...
I have a TabView application with a tab that has a NavView as one of it's views. This view has a sub view with a TableView to hold events. I've enabled the "Add" button on the top right of the nav bar and assigned the IBAction to the button.
The objective is to show a page to add a new event which is defined by a NIB file loaded whe...
I have a program that ran in iOS 2.0 and now am making some updates to it. I don't think I have done anything that won't be available in 3.0, but I don't have a 3.0 device around to test it on. I do know that I updated one deprecated function addTimeInterval to the new version dateByAddingTimeInterval
a few questions -
1) Is there ...
I'm developing a PhoneGap app, extending it with native stuff.
I can make an UIView like this:
[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]
and show some stuff like ActionSheets here. But the MBProgressHUD doesn't show up in this view.
So how do I get the main view (or the PhoneGap's WebView)?
...
Why doesn't this code work when compiling an ApplicationTests unit test bundle?
#if TARGET_OS_IPHONE
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif
One of my dependencies has this check and compiles just fine in my main application bundles, but it tries to load <Cocoa/Cocoa.h> w...
I am trying to authenticate a GKLocalPlayer with Game Center. However, the code supplied by Apple
- (void) authenticateLocalPlayer
{
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) {
if (error == nil)
{
// Insert code here to handle a successful authentication.
...
Is it possible to simply duplicate ipad display to TV out (assuming both have same resolution)?
Code like this doesnt seem to work (it is a pretty naive implementation)
int i=0;
for (UIScreen *screen in [UIScreen screens])
{
if(i>0)
{
UIWindow* extWindow = [[UIWindow alloc]init];
extWindo...
Let's say that my application state is extracted into an object (so that all information specific to app instance is contained in one object) and that object supports nscoding protocol. How can i easily persist it and load it on exit/launch of my application?
My current code looks like this
- (BOOL)application:(UIApplication *)applicat...
I have an existing apple ID connected to my own iTunes Connect account. Now I need to submit an app for a client. I am unclear as to the process. They were unable to add my existing apple ID to their iTunes Connect account. So we created a new apple ID, I can now get in to manage applications but I am unable to create a bundle ID or ...
I'm rather new to ios and json.
I've managed to create a db in mysql and used php to create a basic read and write php pages.
I'm using the TwitterHelper class from cs193p class for the presence assignment from Stanford to acces the php interface online and tie it to my ios code. I am getting an error which I can't solve.
Update:
O...
Have been searching for experiences on TDD with Objective-C and iOS development.
Previous post about "string calculator"-kata in Objective-C was useful (thanks).
But it would be nice to learn even more fluent iPhone-TDD.
Do you have some experience of how to use UISpec (based on Rspec), iCuke (based on cucumber) or similar tools?
An...
When I look in the console I get this message
2010-09-18 17:04:05.284 Wasted Time[8998:207] *** Assertion failure in -[UIActionSheet showInView:], /SourceCache/UIKit_Sim/UIKit-1145.66/UIAlert.m:7073
2010-09-18 17:04:05.286 Wasted Time[8998:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'I...
this is my code and it works flawless, where my_value is a string with separator ','.
everythign works fin but i'd like to display the person record from the address book after i saved it, so in the function
if(isSaved) {
// **** code here ***
}
here the complete function
- (void) addToAgenda: (NSString*) my_value{
...
I can't remember. Does anyone know?
...
How would I create these buttons, so that clicking handles correctly?
Each button is a .png, transparent outside of the coloured square. I need a transparent areas to be click-thru.
...
iOS / Objective-C: I have a large array of boolean values.
This is an inefficient way to store these values – at least eight bits are used for each element when only one is needed.
How can I optimise?
...
Hi!
I try to get the data of an array in an TableView but get an bad access error all the time. My code looks like this:
NewsViewController.h
#import "StatusMessage.h"
@interface NewsViewController : UIViewController {
IBOutlet UITableView *table;
NSMutableArray *statusMessages;
}
@property(nonatomic, retain) NSMutableArray...
For a while now I have been killing spare time by creating a 2D game programming toolkit/library. It is written in Objective C, and consists of an OpenGL rendering system and a whole bunch of AI, physics code, a bunch of specialized containers and other game related stuff. Apart from the OpenGL based View mechanism (obviously), most of t...
I want to make a chat server by using .NET technology (C# and SQL server) and chat clients with iOS Apps and C# Apps but i don't know where to begin :( Anybody can tell me what i need to know to do it :(
...