Hi,
I am new to iphone programming designs. I have hundreds of plists on my server. On the first launch i will be downloading all these plists into my application and storing it here. What are all the best ways to save and retrieve these plists in my application ? What are the iPhone libraries that should be used to get the best and memory efficient iphone application ?
here is some sample javascript:
SomeObjectType = function() {
}
SomeObjectType.prototype = {
field1: null,
field2: null
}
SomeOtherObject = function() {
}
SomeOtherObject.prototype =
{
doSomething: function(val) {
/// <param name="val" type="SomeObjectType"></param>
var val2 = new SomeObjectType();
//val2. shows intellisense correctly
//val1. does NOT
}
}
Shouldn't visualstudio be giving me intellisence when i do "val." inside the "doSomething" function? I would expect it to give me field1 and field2 as options, but it doesn't. I DO get field1 and field2 if I type "val2." so intellisence works when I create a new object of the same type that I specify in the param comment.
Any ideas what I am doing wrong or is this just not supported?
I have seen a lot of posts about this, and it seems like the code below should work. I have created an SD Card image and added it to the emulator (and that works fine).
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType("image/*");
//intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(intent, 1);
It does launch and allow selection of images, but when I click on an image, everything exits and the emulator returns to the home screen, not the back to my app. My onActivityResult is never called either.
What am I missing?
I am doing an iphone application in which i need to provide autoshare option to share automatically the text in an UIView in facebook when we click save button. i will save the facebook username and password of the user in datbase and retrived and want to assign for facebook and password without FBDialog... is it possible? Can anyone help me?
Hi
I have a grouped table with two sections where I display text with different length and therefore cell height.
I have solved the problem with the different length/height with constrainedToSize in cellForRowAtIndexPath.
Now I want to add a section with one single row in which I want to show a picture.
How should I best implement that? (still a bit of a beginner with the Objective C)
I would guess that I would have to create an UIImageView and somehow link that to the cell, but my biggest concern is how do I do with the dequeueReusableCellWithIdentifier now that I will have two different type of cells?
Appreciate any advice that will help me save time from trial and error!
Hi,
I am retrieving the Json data from an URL into a table view. The problem is that i couldnt replace the old data that is retrieved, with the new data when i click another table cell. The new data is getting added to the last cell of the table cell while the old data is also getting displayed. What could be the problem...
After I do some change in my database, that involves significant change in my views, I would like to redraw, re-execute onCreate.
How is that possible?
Starting new .NET projects always involves a bit of work. You have to create the solution, add projects for different tiers (Domain, DAL, Web, Test), set up references, solution structure, copy javascript files, css templates and master pages etc etc.
What I'd like is an easy way of cloning any given solution.
If you use copy/paste, the problem is that you need to then go through renaming namespaces, assembly names, solution names, GUIDs etc.
Is there a way of automating this?
Something like this would be great:
solutionclone.exe --solution=c:\code\abc\template.sln --to=c:\code\xyz --newname=MySolution
I'm aware that VisualStudio has project templates, but I've not seen solution templates.
Ideas welcome, thanks in advance folks!
Hello guys!
How can I change the place of the .sqlite file in my directory structure. Now it is in the Documents, but I want it to be in the Library/Preferences. Can you help me please?
Is there anyway to store audio on an iphone app and then grab that audio file and play it through code. Does anyone have a tutorial to point me to do something like this?
Activity 1:
Intent i = new Intent(this, Activity2.class);
CharSequence btText = btButton.getText();
i.putExtra(BUTTON_TEXT, btText);
startActivityForResult(i, ACTIVITY_SETTINGS);
Activity 2:
in onCreate:
Bundle extras = getIntent().getExtras();
if (extras != null) {
mButtonText = extras.getCharSequence(Activity1.BUTTON_TEXT);
}
The resulting CharSequence is not what was passed, it's something like "(id=830066506776)" instead.
This works:
CharSequence test2 = getIntent().getCharSequenceExtra(Activity1.BUTTON_TEXT);
What is wrong with getExtras approach? This is what they used in Notepadv3 example.
This is for Android 2.1.
Thank you.
What is the use of viewDidUnload and didReceiveMemoryWarning methods?
When they actually get called?
what are the difference between dealloc, viewDidUnload and didrecievedmemorywarning?
How can I get flash effect for images got from Camera?
After I got image from camera (it shows in UIImageView) and before saving it as a file I'd like to lighten (in some cases) image by pressing Flash button. Is it possible by using Core Graphics ??
I have a listview with 200 items. I use a custom view for each row. There is a code that takes some time to calculate, and because of this the list hangs out on scrolling and loads in slow (2-3sec).
I have subclassed SimpleCursorAdapter, and using Filterable and SectionIndexer.
I have in mind to show initially the name of the record, and put in a thread the calculation, and will show up later when it's done.
How do I push back some work, and later update the listview to include the calculated data? This should show up on fly without user interaction.
My map pins can be quite densely populated so that when a pin is selected the callout pops up but is mostly obscured by all the other map pins - I can bring the Map Pin to the front it there were a delegate for selected map pin ( not tapped callout, selected pin ).
Any suggestions for a work around ?
I would like to edit the ASP.NET MVC templates for VisualStudio so that any new action or controller created has a specific piece of code within it by default.
For instance, I'd like to replace the generated:
public ActionResult MyAction()
{
return View();
}
with a specific coding standard we prefer to use within in my team. eg:
public ActionResult About()
{
try
{
DoStuff();
return View();
}
catch(Exception)
{
HandleException();
}
}
I've looked through the filesystem, but I cannot find anything specific that relates to the ASP.NET mvc templates. Anyone know where they are?
How can i connect buttons in the example of this Project. zip
Here's the link of the file--- (http://www.2shared.com/file/12046081/65fad040/Project.html).
Example: Button General Information connect to 3rd page, button Trainer information connect to the next pages number.
May i need to create a new .h/.m/xib file for each of the pages?? then, where's the code to connect the button to the page. Also , how (the steps) to make it true??
All of your replies i thank you all first. Very appreciated it =)
Hi there,
I am developing an iPhone app, which now can update Twitter account with GPS coordinates in real-time, by the Twitter API link: http://username:[email protected]/statuses/update.xml , and I am looking at how to make my own database to accept updates from iPhone, via a similar API page.
It seems a .php page can serve as the API, and MySQL can serve as the database.
What are the good ways of doing it? Any template code and tutorial please?
Hi,
On view in IB I have numerous items (including view itself). ONLY one item has tag 0, yet following line works for ANY UITextBox other then the one with tag 0. Note that only ONE UITextBox has tag 0, why:
(UITextField *) [self.view viewWithTag:0]).text = @"foo";
Interesting that when triggered event received for the element with tag 0, I can get value of Tag 0 with no problem.
Is there a limitation to look for tag 0 elements?
Hi,
I am developing a music mixing app in iphone. It'll mix the music and user can compose a new music from it. I need to record this final music. I had used AVAudiorecorder to record this one. But no change. It can record sound from microphone but I need to record app sound.
I had used audio queue call back function to record the audio. But when app runs I can hear the audio from my app and I couldn't hear any sound from recorded audio. There is no problem with recording since I can hear the audio recorded through microphone. But I need an offline recorder which can record the audio output of iphone, rather than the audio input through microphone. I need a recorder which can record audio using ipod touch (no microphone).
Any help?
I have a TabActivity with three tabs defined. The first tab is light-weight and renders in acceptable time. But the 2nd and 3rd tab, does need a couple of seconds to get visually rendered, after I click them. I would like to launch them, after I've loaded my first tab, in background for pre-cache. Once they are loaded, I can switch quickly between them.
So I am wondering how can I launch the 2nd and 3rd tab. They are intents loaded in the view area.
I know it is possible to set the height of all rows in a UITable but is it possible to set one row to be bigger than the others.
For example when the user touches on the cell with 2 fingers I want the cell to expand and show a description. But only that cell. Is that possible without overlapping the cells below it?
I am assigning to an ImageView contacts images using this code:
mPhotoView = (ImageView) findViewById(R.id.photo);
mPhotoView.setImageURI(objItem.getPhotoUri());
If the contact has no image, this does nothing, and no error is raised.
When there is no image, I want to add a default image. So I need to check either if the image was added to the view, or check that the URI holds some image data
How do I achieve that?
Than I will set default image by this:
mPhotoView.setImageResource(R.drawable.ic_contact_picture_2);