Hi,
In my iPad app, in one class I register for a notification:
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self selector:@selector(selectedList:) name:@"TTSelectedList" object:nil];
My selectedList: method looks like this:
- (void)selectedList:(NSNotification*)notification
{
NSLog(@"rece...
I have a navigation controller. One of the views adds custom subviews in its viewDidAppear:. I notice that the first time I navigate to an instance of this view controller after launching the app, viewDidAppear: invokes twice. If I pop this view off the stack and navigate to it again, viewDidAppear: invokes only once per appearance. All ...
I'm trying to load an m3u8 file that's saved to the local filesystem, but the MPMoviePlayerController refuses to play it, citing "m3u8 is not a supported media type". However, the same m3u8 file plays perfectly fine when I'm accessing it on a remote media server. Is there any workaround that can be used to play local m3u8 files?
...
There's an action in my program which users need to perform very frequently (potentially hundreds of times per session), and I'd like to add a keyboard shortcut for users with a bluetooth keyboard. Is there any way to do this?
Right now, the closest I've come is triggering the action whenever the U+F8FF character is entered (shift+alt+k...
Basically, in my iPhone app, I want to have something almost exactly like the widget slider/selector of the Mac OS X dashboard on the bottom of a view window. Users can slide the row of icons and drag and drop one onto the view. And just like dashboard, the icon animates into something else as the icon is dragged away from the slider/sel...
I'm trying to understand the applicationIconBadge property of UILocalNotification. I can only set an explicit badge value, I can't specify I just want it incremented when the notification fires.
http://developer.apple.com/iphone/library/documentation/iPhone/Reference/UILocalNotification_Class/Reference/Reference.html#//apple_ref/doc/ui...
hi all,
wat i am trying to is, each time user touches screen, i am adding a small bulletr image on screen
UIImage *img = [UIImage imageNamed:@"shoot_a.png"]; //bullet shot image
im.image = img;
[self.view addSubview:im];
, if user touches 50 times, there will be 50 images on screen.
now i want, if user hit a button, all the...
Hi guys!
I have a hard time to understand my iPhone Application strange behavior in iOS4.
Exit my app with Home button -> applicationWillResignActive , didEnterBackground is called,
Open my app -> applicationDidBecomeActive , didEnterForground is called. Everything is normal here.
Exit my app with Home button -> applicationWillRes...
Hi all,
I am receiving images from xml feed they are very large in size how can i compress them before displaying them in table-cell.
my code is
int blogEntryIndex1 = [indexPath indexAtPosition: [indexPath length] -1];
imgstring=[[blogEntries objectAtIndex: blogEntryIndex1] objectForKey: @"image"];
NSURL *url = [NSURL URLWith...
I have table with a NSFetchedResultsController datasource and delegate. I have another view controller (only for displaying detail) which can be pushed from the table. However, when the vc is pushed, a call to the NSFetchedResultsController "...didChangeObject" method is received for the "update" type. However, the vc being pushed does n...
Hi!
I'm new in iPhone development, can you advice me how to serialize AdressBook records?
I have read stackoverflow - How do I serialize a simple object in iPhone sdk, but I still have questions:
should I extend ABRecordRef? Is it possible? Or should I implement own class NSObject?
(similar question was on Mac forums and was left with...
Can anyone kindly put me on the right path as to how to go about animating an object as though it's being rotated by touch+drag? We took images of an object sitting on a rotating tray at 10-degree intervals.
I was tinkering with Titanium and had a demo running whereby I simply changed the image to the next (or previous) image in an arr...
Is it possible to stream video directly from the iPhone? Is there any undocumented way to do it? Or am I missing something?
...
I have a view called MyViewController, that I initialize from a xib file.
Its loadView method looks like this:
- (void) loadView
{
[super loadView];
// some initializations
}
I create it from some other view controller like this
-(void) createMyViewController
{
MyViewController *aController = [[MyViewController alloc...
I used Unity iPhone(1.7) to build an app and brought it into Xcode (3.2.3). When the game is built out, Unity creates an appController file automatically and in it, a window is created which displays the game. When I launch the game, I can clearly see when I rotate the device that the window is rotating as well. The game elements themsel...
Is it possible to record a video on iPhone but with some custom sound instead of the one captured by microphone?
...
Is there a way to interact with a caldav server with the iPhone sdk.
...
Here's a hypothetical question:
Say I subclass a UIView that draws a triangle and I want this triangle uiview to part of the screen. And then say I subclass another UIView that draws a rectangle and I want the rectangle to take part of the screen.
In other words:
1) Can a view-controller have multiple views simultaneously being drawn ...
Hi , I am very new to cocoa . Well I have multiple UIImageView (animationView)flying around the screen. I am using UIAnimation class to animate them. While I have one more UIImageView (myObject).I m trying to collide these while i move "myObject" around the screen using touchesMoved method. The problem is I am not able to detect the coll...
In IB I have a view with a UIButton of Type Custom, it has no image and the Title is set as "#placeholder"
The view is attached to a class that provides an IBOutlet and an IBAction for the button.
I set the button title with this: ViewClass.ButtonOutlet.titleLabel.text = @"%@",stringifiedVariable; whenever i need to.
This works ok. Ho...