Can you guys help me converting this C# code to Objective-C?
I don't have a clue about C#/Visual Studio!
public static class BezierSpline
{
public static void GetCurveControlPoints(Point[] knots,
out Point[] firstControlPoints, out Point[] secondControlPoints)
{
int n = knots.Length - 1;
// Calculate first ...
My app has a paged scrollView with a tableView in each page. At the bottom of the screen I placed an ad banner, which should hide as the ads become unavailable and reappear when they are loaded. This banner is placed below the scrollView and is not affected by the user scrolling left-right through pages or up-down through the table.
So...
Hey there,
I am trying to use MobileSubstrate to have a socket listening on a port on various UIKit applications. However, when my extension hooks into MobileSafari, MobileMail or MobileMaps, it is unable to successfully create the socket. I found this page on the iPhone Dev Wiki which clarifies the issue: http://iphonedevwiki.net/index...
In my app, I am trying to save and retrieval of an image in core data. I am able to save an image successfully after convention of UIimage into NSData, But when I am trying to get an image as NSData it shows output as given below,
case 1: When trying to display as a string from DB.
<Event: 0x5b5d610> (entity: Event; id: 0x5b5ce30 <x-...
Hi everybody,
I'm currently trying to create a navigation based application, pushing views to change the screen content. I'm trying to set up a button which can allow me to "restart" from the first screen, but I can't figure out a way to do that.
If I "push" the first view, there will be a "back" button, and I'll just have another piec...
I have a program where we are using a navigation controller and need the app to launch to one of two different views. Basically if certain info has previously been entered then we need the app to launch to view A, but if the info has never been entered then we need it to launch to view B. I am having difficulty getting this to work and a...
hi friends ..
i have a multiple textfields in my nib file.
i want to decide input range in my one textfield 6-16 digits.and don't wanna to change some other textfield input.for that i was made a method called tflimit as below.
-(IBAction)tflimit:(id)sender
{
if([textfields1.text length]>=15 )
{
[textfields1 resig...
I needed to see touch events on my window, so I subclassed UIWindow to make my a MYWindow class. I am overriding the sentEvent function to receive the touch events on the window and all of that is working just fine. I did the following to achieve this:
self.window = [[MYWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[win...
The following code below is attempting to implement a method where my navigation controller launches to on e of two different views. The problem is that I keep getting a black screen whenever my application launches.
#import "SugarCRMReleaseOneAppDelegate.h"
#import "SettingsViewController.h"
#import "ModuleViewController.h"
@implemen...
Hello all.
I have a question about showing an alert on the screen. The thing is: I have an app with 20 to 30 different screens (nibs) And in each nib I do some checking to see if the user has inserted text in a textedit. And some alert messages are identical to others. Like In 3 nibs there is a text field for the user to enter his age, a...
I'm tring to get notified when animation starts and stops, so my code is:
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:)];
[UIView setAnimationWillStartSelector:@selector(animationDidStart:)];
I do implement these 2 methods, but animationDidStop:finished: got notified, and...
Hey guys just wondering if anybody could help me,
I have a simple magazine app where the images are loaded from an array into a image view.
On the ibooks app there is a button which will take you to a type of overview with all the pages deconstructed as buttons where you choose the page. They are like 3 pages accross and then down. Is th...
HI,
From a table, once i selected the row, i would the row name to be store in a text file. how do i do that?
...
Hi all,
Im sure this is going to be one of those things where someone points out something really obvious that Im doing but I cant for the life of me find the problem. Basically I have an array of strings and I am loading the text from the array into my uitableviewcells as and when it is needed. The problem comes when I begin to scroll ...
We are trying to display an alert view when there is no connection and we are using the reachability 2.2 classes from apple. The problem we are running into is that at the start of the program we are always getting an alert view that there is no internet connection but we are connected to the internet. Is there a correct way to check for...
Can someone please tell me how i would go about doing this .
An app that updates daily with a new image, and a text label.
Do i have to have some sort of plist file from the inter that i update, i cant quite figure out the method. Similar to guardian eyewitness if anybody kniow that app.
Cheers
:s
...
Hi guys.
Quick question. I am writing a website and would like to redirect users to different webpages depending on their browser and also their version of the iPhone operating software. I know you may come back at me and say it should be up to the user to decide which site they view, they don't have a choice in this matter.
The code I...
I want my app to automatically reject a call when it comes in. Is this possible with the iPhone SDK?
...
Hello,
I have a number of text fields on a view controller, when the keyboard appears, it covers some of the text field that are towards the middle of the view controller. Is there a way to move the ViewController up when the keyboard appears.
Stephen
...
I have a set with 50 points in x,y. I need to draw the smoothest bezier that passes in all points, or in other words, the bezier that will best fit the points.
How do I do that? thanks
...