iphone

iPhone Core Data problem

This is my first project with Core Data, I followed the Event tutorial provided by Apple that helped me to understand the basic of core data in iPhone. But now, working over my project, I've a problem adding data into my database. When i create an object and set the data, if I try to get it back, the system returns me a strange sequenc...

Replace a control on the screen

Hello all, I have an instance of a FlowCoverView (a great library that emulates cover flow on the iPhone). And it works great, with the exception of an update. When I update my table behind the scenes, I have no way of telling this control (that is defined in IB) that it has been updated, and to reload. (much like you can with a tabl...

iPhone Toolbar button spacing

Is there a way to have the UIBarButtonItems in a toolbar space themselves out evenly? ...

iPad cover flow

I use FlowCoverView (http://chaosinmotion.com/blog/?p=295) for cover flow. However, the textures this library creates are limited to 256 pixels maximum, and I would like to show bigger images in an iPad cover flow. What do you use for cover flow on the iPad? Is it possible to modify this library to make the textures bigger? ...

How can I compile an iPhone App with Flash CS5 without a Developer License

I understand Flash CS5 isn't the best way to make an app, but I'd really like to test out the apps I've made with it on my iPhone. Has anyone come up with a way to modify Flash CS5 so it doesn't require a Developer Certificate or Provisioning Profile (like the way you would modify Xcode so you can compile apps without paying $99 for the ...

What is the relationship between UIView's setNeedsLayout, layoutIfNeeded and layoutSubviews?

Hi all. Can anyone give a definitive explanation on the relationship between UIView's setNeedsLayout, layoutIfNeeded and layoutSubviews methods? And an example implementation where all three would be used. Thanks. What gets me confused is that if I send my custom view a setNeedsLayout message the very next thing it invokes after this me...

Send AppleScript to remote computer in Objective-C

How do you use Objective-C (iPhone) to send an AppleScript to a remote computer (on same network) to be executed? I think something like NSNetService would be of use here, but I don't know. EDIT: Ok, to clarify, all I want to do is send a command ID or something and then the Computer associate that with the corresponding AppleScript co...

UIKeyboardBoundsUserInfoKey is deprecated, what to use instead?

Hi, I'm working on an iPad app using 3.2 sdk. I'm dealing with obtaining the keyboard size to prevent my textfields from hidding behind it. I'm getting a Warning in Xcode -> UIKeyboardBoundsUserInfoKey is deprecated what should I use instead not to get this warning? ...

Playing audio from a wav file in iPhone SpeakHere example

I'm working with the iPhone SpeakHere example, and I would like to be able to play audio from either the mic (as in the example) or from a wav file. I have working code to play from a particular wav file, which looks like this: NSString *path = [[NSBundle mainBundle] pathForResource:@"basketBall" ofType:@"wav"]; AVAudioPlayer* t...

In what ways is Cocos2d better the the APIs already given to you by Apple? (Just examples not opinion).

I don't want a debate... I just want examples because I thought the stuff Apple gives you is already pretty good. Are there any particular reasons that Cocos2d is better for game development? ...

Asynchronous callback for network in Objective-C Iphone

I am working with network request - response in Objective-C. There is something with asynchronous model that I don't understand. In summary, I have a view that will show my statuses from 2 social networks: Twitter and Facebook. When I clicked refresh, it will call a model manager. That model manager will call 2 service helpers to reques...

UITableView load cells reverse

I want to make my cell load and use it's data in reverse. Basically, I want the last cell to be the first. ...

How can a web developer learn to develop for the iPhone?

I'm a web developer and I'm getting envious of all the cool iPhone apps. I know nothing about C or what ever language they use to make iPhone apps. I really have no idea where to start. What do I need to do? Should I take a class, buy a book? I have a pretty good grasp on programing, I do tons of HTML, CSS and Javascript development and ...

How does NSActor work and what is NSActor used for?

Sorry if this is a newbish question but, can some one tell me in an easy way what the use of NSActor is for and what does it do? ...

Reading a .doc (MSWord) file in ObjectiveC ?

Hi All, Is it possible to read a .doc (MSWord) file in ObjC ? Or Is there any other way to read the word file ? Thanks ...

is it possible to adjust position x,y titleLabel of UIButton ?

here is my code UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [btn setFrame:CGRectMake(0.0f, 0.0f, 100.0f, 100.0f)]; [btn setTitle:[NSString stringWithFormat:@"Button %d", i+1] forState:UIControlStateNormal]; [btn addTarget:self action:@selector(buttonPressed:) forControlEvents:UIControlEventTouchUpInside]...

iPhone Javascript execution time

Hi guys, In the Apple docs it says that JavaScript execution time is limited to 10 seconds for each top-level entry point. If your script executes for more than 10 seconds, Safari on iPhone OS stops executing the script at a random place I plan to have some Javascript run every 10 seconds or so that will do an AJAX query to the...

UIWebView - How to Disable Action Sheets (UIActionSheet)?

Hey, I would like to know how you can disable UIActionSheets, specifically the Action Sheets being displayed after tapping and holding hyperlinks in a UIWebView. These seem to be enabled by default in UIWebViews containing the link address of the respective link in the title of the alert. They are also enabled in Safari. (How) is it po...

Break out of jQtouch?

I'm trying to give my mobile users the choice to view the full website by loading a different page. Thing is, jQtouch thoughtfully transforms links into ajax calls, so the user doesn't leave the page at all. Is there some way to break out of jQt or exclude certain links from loading ajaxically? ...

upload data and save it using ASIHTTP

I have a web page in which a value 'A' is constantly updated. I use ASIHttp to access the page contents and get this value 'A'. Based on A i calculate value X and i then i need to save this X to a webpage. I am able to get the data and am doing the calculation to get X. How do i upload and save the X to a webpage using ASIHTTP so that th...