Tagged Questions
This tag should be used only on questions that are about Objective-C features or depend on code in the language. The tags "cocoa" and "cocoa-touch" should be used to ask about Apple's frameworks or classes. Use the related "ios" and "osx" for issues specific to those platforms.
0
votes
0answers
2 views
CCDirector may not respond to view (cocos2d-iphone)
ArcadeHighScoreLayer.m
I am trying to add UITableView using
@implementation ArcadeHighScoreLayer
{
UITableView *table;
int count[N_OF_SECTION];
}
- (void) onEnterTransitionDidFinish
{
...
0
votes
0answers
4 views
UIImagePicker add Caption
I can't test this code in the iphone simulator but I was wondering if this is the best way to add a caption to a photo someone has taken in the UIImagepickercontroller class.
- ...
0
votes
0answers
11 views
How would I call this method from the viewDidLoad: method?
How would I call this method from the viewDidLoad: method?
- (void)mapView:(MKMapView *)mapview didSelectAnnotationView:(MKAnnotationView *)view {
// code
}
I'm stuck on the syntax: [self ...
0
votes
0answers
6 views
AVAudioPlayer totally remove from App
facing a new problem on my new app :
I have a nav based app, in a UIViewController i have a AVAudioPlayer instance, when the view disappear i call :
[myAVAudiPlayer stop];
it stops, everything ...
0
votes
2answers
12 views
pdf not added to email in objective-c in IOS 5
I am trying to add an email as an attachment to my mail. I do it like this.
-(IBAction)mailPDF:(id)sender{
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
...
0
votes
2answers
28 views
insert images to the device's cache - iOS
is there a way to insert images, that are downloaded from the web, to the devices cache?
in my application, there's a few views that contains images. at every tableView there's 25-30 images.
the ...
0
votes
0answers
24 views
UITextView delegate crashing on iOS 5
When I set the delegate of a UITextView, it crashes when I call becomeFirstResponder on it, on iOS 5. I currently don't have any delegate methods implemented, and they're all optional.
Any idea why ...
0
votes
1answer
12 views
add verticle flexible space between UIButton in iphone app on ios 4.3 or more
i have 12 UIButton in a UIView lineup as 2 buttons on each horizontally, these buttons can be hidden or shown dynamically according to availability of information.
The problem is that when a button ...
1
vote
1answer
25 views
UIMangedDocument Context is nil
I'm trying to learn how to use Core Data and UIManagedDocuments. First I create/open the document:
NSURL *url = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory ...
0
votes
1answer
17 views
page not loading in uiwebview storyboard
I am trying to call a method from another UIViewController which takes in a string(url) as parameter and opens it in UIWebView. Below is the code of the IBAction in the UIViewController class:
...
0
votes
0answers
9 views
How to encrypt, decrypt data using DUKPT and 3DES algorithm in iphone for a card reader application?
I have reffered this code and successfuly created IPEK and PEK for differant TKSN and Now how do I encrypt this keys to my card reader device and how do decrypt the card information using those keys. ...
0
votes
0answers
15 views
UIInterfaceOrientation - value when notified from UIDeviceOrientationDidChangeNotification
I have problem with UIDeviceOrientationDidChangeNotification notificiation.
The simplest way will be to present a few lines of code:
- (void) registerForNotifications
{
NSNotificationCenter *nc ...
-3
votes
0answers
26 views
Making multiple connection in ios
I'm using 2 collectionviews on one screen and fetching 2 different data from my apis. But there is a problem that I can't manage this collectionviews that which collecionview fetch which data from my ...
1
vote
1answer
12 views
How to simulate process/daemon crash on OSX?
How can I invoke/simulate process/daemon crash on OSX and as result to receive crash report in
/Library/Logs/DiagnosticRepors
(e.g. opendirectoryd_2013-06-11-125032_macmini61.crash)?
I tried ...
0
votes
1answer
15 views
Is it possible to autoplay audio and play/pause with button?
I need to play audio automatically after open the view and have one button to control play/pause event. I heard that it has a prepareToPlay to control the audio by button but it cannot play audio ...