Possible Duplicate:
How to pass double[][] into a method call?
Hi I am trying to init an object with a double value in the format double filter[n][n];
but i keep getting the following error.
in my header i have this
@interface filter : NSObject
{
double **matrix;
}
@property(nonatomic) double **matrix;
-(id)initWithMatri...
I'm trying to do is slow down the audio in an audio file I'm playing programmatically using the iPod player in an app.
I've read that this is possible now in iOS 4 (supposedly they gave us access to the raw sound data from songs in the iPod library, which makes no sense to me given the DRM situation), and I've looked through the new API...
Hello everyone, i noticed that openfeint is eating up my iphone cpu usage. My game slowed down after i updated to the latest openfeint. I ran the instruments cpu sampler and it showed that that openfeint was eating up to 65% of the cpu usage and that made my game very unresponsive. Anyone else noticed that as well?
...
I want to get the iPhone's network speed so that I can give user an info when the speed is too slow.
...
I've been studying the sample code Apple provides in their iPhoneCoreDataRecipes application and there are a couple of things they they're doing that I don't understand and I haven't been able to find a resource to help me with them.
Specifically, the block of code in question is:
- (void)tableView:(UITableView *)tableView didSelectRow...
Stuck on what I figure is simple thing here. Basically I need to pass a pointer to an object as an argument into an instance method of another class. Said differently: I have a class that creates "Things" and I have an instance of another class that I want to receive the "Things."
Working with Cocos2D frameworks. The Things are a custo...
In my application I have to read data from a file or core data and draw a bar graph using that data. Can any one help me in drawing the bar graph in a simple way?
...
Is there a way to make the action of clicking a link in a html of a UIWebView to load another UIView and pass the value of the url to that view, instead of loading that html page in the same UIWebView. So basically, modify the default action of clicking a link in a UIWebView. Is this possible?
...
I'm developing iPad app using SplitView.
And I put UIScrollView in DetailView by using Interface Builder.
Then I add IBOutlet UIScrollView scrollView; in detailViewController.h that was automatically created by Xcode.
And connected this scrollView to UIScrollView in DetailView.xib .
And I added below code to DetailViewController.m .
- ...
Hi Guys,
I am getting allocation count plus one in the below code.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"MyIdentifier"];
if (cell == nil)
{
cell = [[[UITableVie...
I have this code to show a nib on click of row index
UIViewController *controller = [[ShowFavViewController alloc] initWithNibName:@"ShowFavViewController" bundle:nil];
[self.navigationController pushViewController:controller animated:YES];
self.navigationController.navigationBarHidden = NO;
NSLog(@"here");
but its not...
I am new to objective c and I guess it has to do with me not understanding pointers or something, but I cannot access a variable outside the class it was declared in.
I know this is a ridiculous question, but I need help.
I have something as simple as an NSString which depending on which tablecell row is selected it grabs the name an...
This is sort of a secondary question to my question here but it was suggested split the questions up for a better response.
I have individual lines of data like the following that a passed to the function separately.
Mon-Wed 930-1700 Thu 900-1700 Fri 930-1700
Mon-Wed 930-1700 Thu 900-1700 Fri 930-1700 Sat 900-1200, Home Lending Sat ...
Pseudo code
pageUrl = "http://www.google.com"
if(pageUrl == never Downloaded)
Download pageUrl
else
{
Display Saved Version
Mean while download pageUrl
When done display new version
}
How can I do something like this in objective C for a UIWebview?
Also what's the best way to save web pages for this scenario? PList, SQLit...
I'm using CoreData (with SQLite as the store) in an iOS 4 iPhone application to store data that i initially retrieve from an xml file. My data model contains more than 15 entities and I am concerned about memory consumption since I saw CoreData creating all the NSManagedObject in memory to represent the object graph of my data model.
I p...
Hi guys,
Im new to writing macros in Xcode and am having a problem writing my own NSLog replacement. I've been using a few examples but want to tweak them slightly, so they act more like Log4.
Im trying to write a 2nd macro (or ideally just a delegate of the first) which takes a log level variable as well as the string and arguments fo...
Is there a way to do that? I would hate it to hard-code the app ID somewhere...
...
How do I increase DatePicker height in iPad? Is this possible? And also one more doubt is, is it possible to increase the UITableView vertical scrollbar is more visible? (i.e I want to increase the vertical scrollbar width).
Every time I load the tableview data, the first time the scrollbar is not visible. When I drag the tableview onl...
I have a class in which I have an audio player. In class B, I have a switch, from where I want to take control of play and stop of background music.
I am not able to stop and play music through switch.
this is my audio player at viewdidload of class A
NSURL *url = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/bgmusic.wav", [...
Hi all.
I see a few questions about this here, but I can't really understand what exactly I should do to implement rotation of UIViews.
I have two Default pngs for Landscape and Portrait mode, but how the view knows that at a particular time it has to rotate his own content? What methods I should implement, and what allows me to change...