I'm trying to implement the answer to this SO question. The problem is: -[drawTextInRect] is apparently not called, and setting the shadow in -[drawRect] doesn't make the UITextField's text shadowed.
Another weird thing is that even if my subclass implementations of -[drawTextInRect] and -[drawRect] are completely empty (not even a call...
I am not an iPhone developer (yet). So please excuse me if this issue is very basic question.
From what I can gather from the development documentation, it is only possible to 'play' one video file at a time.
The requirement I have is to switch from 1 video to another seamlessly or switch to a 2nd instance of the first video and keep '...
Hi all,
i am building an music application in iphone which i have made using AVAudioPlayer,and it is playing music successfully.
But now my requirement is to generate a wave(sine/square/digital/analog) on screen as the music begins to play and stop the wave after music file ends.
How can i do this ?
...
Is there a way to use the SMS URL to open the SMS app with multiple recipients? I've tried similar approaches to the mailto: protocol but it's not playing nice.
Thanks in advance.
...
I'm wondering what's the limit of localstorage HTML 5 on iPhone? I read that it was like 5 Mb, but I'm surprised is so little. Any ideas?
...
I am creating an audio player application, i need to enable the user to fast forward and backward a song by holding a button(seperately for each). I've done for playing, stopping, skip to next and previous song. But i got stuck with this section. I dont know the method to implement this. pls help.
...
hello,
I am a newbie in iPhone development, doing my first app.
I have some labels on screen
out of these labels I have to appy drag event on few selected
code for dragging is
- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
// Retrieve the touch point
CGPoint pt = [[touches anyObject] locationInView:self];
...
Is there a way to figure out the current data network available on iPhone? Whether it is EDGE or 3G?
It works for me even if its doable using core telephony private framework. I am not bothered about app store submission.
I know its very simple to identify whether the user is on Wifi or CellData network. But not able to find a way to i...
I want to upload an image to my twitter profile using objective-c. I saw in the twitter API that I need to send a HTML post to http://twitter.com/account/update_profile_image.format and send the picture as a parameter. I am done with the authentication. I am stuck with the uploading. Maybe somebody can help me with sending the picture a...
I am trying to play a .gif animation in cocos2D. For this i am using the library glgif. Now, to display the animation i am pausing the Director, adding a subview to show the animation and after the animation is done i am resuming the Director.
However, I am not able to resume the state of the Director and it shows blank.
So I tried this ...
Hi guys,
I am trying to send an email with MFMailComposeViewController. I'm able to send emails with images attached, but when I try to attach mp3 or mp4 files I get this message:
DA|Could not open the lock file at /tmp/DAAccountsLoading.lock. We'll load the accounts anyway, but bad things may happen
(if seems to appear right after ...
I'm using UITextView to display a text read from XML file. On click of a button, it will read next entry from XML file and replaces text in text view accordingly.
Its working fine.
But the trouble is that, some times, the text starts at 0,0 location in text view and some times, its leaving some space at the top of text view and displayin...
Hi,
if I change the frame of a UIWebView (scalesPageToFit property is YES), what do I have to do that the zooming level of a currently displayed webpage persists?
Let's say I have a UIWebView frame with a width of 200 pixels, and has zoomed into a website so that only one column is visible. After changing the width to 300, I still see ...
I would like to be able to control the initial shift state of the iPhone keyboard from a Javascript prompt (updates added for web forms). It seems to mostly default to an initial capital but I feel sure I've typed into/seen prompts that are initially lower-case. I also feel sure that I've seen custom layouts used from the web.
Googling ...
Hi,
I am new to iphone development and xcode, coming primarily from a unix/windows C background.
I have some utility functions like:
void myVibratePhone()
{
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate) ;
}
that I'd like to use across all my projects.
In C, I'd give each project the header file, and link in the .OBJ f...
I am currently working under the assumption that -performSelector:withObject:afterDelay: does not utilize threading, but schedules an event to fire at a later date on the current thread. Is this correct?
More, specifically:
- (void) methodCalledByButtonClick {
for (id obj in array) {
[self doSomethingWithObj:obj];
}
}
static ...
In the visualization app I'm writing I want to shape a graphic using a matte created with a path. The graphic is a horizontal rectangular strip with various shapes drawn within. Atop this rectangular strip I want to draw an ellipse to act as a matte that shapes the rectangular strip to make it appear to drawn within the ellipse. How do I...
I'm trying to build a nice looking config-screen using UITableView (much like the settings on the iPhone, in the clock etc).
I'm having some doubts as to how aproach this; I will need some UITableViewCells with switches in them (right now placed in the accessoryView), other that link to further pages and a detailLabel indicating the cur...
I'm working on a few basic apps/utilities/games with the iPhone to get a better grip on it.
I currently have a setup where a CGRect moves wherever the finger moves, however I don't want the CGRect to go outside the bounds of the view.
Original Method
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touc...
*I'm using yajl_JSON library to produce an NSDictionary from a JSON response for the bit.ly url shortening service.*
The JSON response:
{
errorCode = 0;
errorMessage = "";
results = {
"http://www.example.com/" = {
hash = 4H5keM;
shortKeywordUrl = "";
shortUrl = "http://bit.ly/4BN4qV";
...