Hi,
I have my iPhone app that calls an ASP.NET Webservice to download "data". Most of this needs to be protected, but currently the webservice that's deployed can be called by anyone who can figure out its URL, thus resulting in a complete loss of security.
The simplest form that I can think of would be for the phone to make a call ov...
The following is a snippet of code where I am trying to draw a circle but my x value prints as a constant value. It's most likely something very very simple. Thanks in advance for any help.
int sides = 100;
int radius = 200;
int centerX = 100;
int centerY = 100;
CGFloat red[4] = {1.0f, 0.0f, 0.0f, 1.0f};
CGContextSetStrokeColor(context,...
I have a Group entity which has many Item entities. An Item entity can be in multiple groups. The relevant portion of my model looks like this:
The Problem
When I call
[fetchedResultsController performFetch:&error]
I get this error in the console
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ...
I want to make an app that measure the amount of data I use while surfing on my Iphone over 3g network.
Things I would like to incorporate;
- UIPickerView (to set the amount of data I want to to use before an alert shows)
- AlertView ( the warning that my data is about to exceed)
- Run in the background.
So basically, i want to be able...
I have to access a web server using a GET with international characters (Hebrew in my case but could be anything).
So I make an NSString just fine but
[NSURL URLWithString:urlString];
return nil.
I realize I probably have to convert the international characters to percent codes.
Is there a built in method in Objective-c to do so?
...
i am trying out a pong game to start out developing games on the the iphone and i've got everything moving but i need to implement the scoring and make the ball return to the center of the screen
this is the code i have currently in the touchesBegan method:
if(ball.center.y >=444) {
computerScore=computerScore+1;
compute...
On a number of view controllers in my app, it seems to get overreleased such that when I pop the view controller (i.e. the user hits "back"), I get a crash. I am using fairly standard code to declare and load the UIViewController:
MyViewController *myVC = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
NSM...
I have a UIWebView in which the user can browse a bunch of locally stored and interlinked HTML files. All works nice and well, except in this particular case:
User navigates to a page with a fragment pointing to chapter 3, causing (correctly) the browser to render the HTML from the fragment anchor and onward.
User scrolls a bit further...
I'm making a reaction type game and I needed some help implementing a way to define who touched it first.
So I can compare and know who is the winner and award points correctly. I have no idea how im gonna implement this...
Any Ideas?
...
hi all.
i have a tabbar app. there is a button in one of tab.
i want to open a new uiviewcontroller by animation like popup when i press the button.
popupviewcontroller has a uiwebview. i want to show some web pages in popup view.
i designed the popupview in IB.
how can i open my popupviewcontroller with animation like FBConnect.
FBcon...
I am trying to accomplish some complex effects during my UIView rotation, and I'm using the first half/second half method of rotation animations.
However, when my second half starts, I'd like to set some properties on my subviews (alpha, frame) etc, from which to begin animating in the second half. But setting any of these properties of...
I'm wondering if there is a way to have the UITextField clear button 'always visible'
textfield.clearButtonMode = UITextFieldViewModeAlways;
doesn't seem to work
.. and if it is possible to dismiss the keyboard using the button?
Thanks in advance.
...
I have a a xib with a toolbar and on that I have 2 buttons all made in IB.
I can connect my outlets to the buttons but when I click them the method isn't triggered?
Why is that?
In my header file I have this:
@property (nonatomic, retain) IBOutlet UIBarButtonItem *cancelEntry;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *sav...
Hi,
I need to run a method everytime the user switch the screen or return to the application (after a call, or pressing the "Home Button" and returning to the app, for example).
Is there any way to recognize this, like an event or method that is always executed when this happens?
Thank you guys in advance.
...
I have a table view controller (VC1) which has a list of items. When people click on the items, they are taken to a view controller where they can edit them (VC2). VC1 also has the ability to search through the items, and I've built this using a UISearchController and NSFetchedResultsController. It works fine for searching, but I run int...
Hello,
I'm having a problem setting the font for UILabels and UITextViews with Interface Builder.
I'm trying to set the font to Gill Sans.
If I set it programmatically it works fine, like this:
myLabel.font = [UIFont fontWithName:@"Gill Sans" size:24.0];
But if I try setting it with Interface Builder, I get the same behaviour desc...
Hi,
I want to implement a kind of video conference on the iPhone. I know that the Faceti e API comes available sometime I can't wait for that..
Does somebody know where to start? Or some sample code would be very welcome!
Thanks in advance!
...
I am trying something a little different. Instead of a class, I have used MKPinAnnotationView and the inherited image instance. Here is the code for viewForAnnotation. But it doesn't work. Nothing shows at all.
I also tried it using MKAnnotationView and I get the same result.
Any help would be very much appreiciated.
(MKAnnotationVie...
I have an app that is drawing lines on a quartz context. The app starts drawing when the user move his finger across the screen.
At the time TouchesMoved is fired, I save the quartz context to a PNG file (I know saving a file is slow... I have tried to do this to memory but app memory usage skyrocketed, so, I am trying to do it to disk)...
In my code, I am trying to access [NSManagedObject managedObjectContext] but surprisingly it returns nil. The managed object is loaded because I already successfully accessed it's values using [NSManagedObject valueForKey:]. Is there any case where managedObjectContext returns nil?
...