My SearchView updated my UI only when it looses focus

I have a searchView with an onTextListener on it

    //Keep a global variable of this so you can set it within the next listener
    SearchView user_search = (SearchView) search.getActionView();

    user_search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {

        @Override
        public boolean onQueryTextChange(String newText) {
            final Intent intent = new Intent("menu-filtered-refreshed");
            intent.putExtra("filterText",newText);
            runOnUiThread(new Runnable() {
                @Override
                public void run() {

                    // You can also include some extra data.
                    LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent);

                }
            });
            Log.d("Text has changed to :", newText );

            return true;
        }


        @Override
        public boolean onQueryTextSubmit(String query) {
            return false;
        }
    });

And in my Fragment that receives the broadcast:

@Override
public void onActivityCreated(Bundle savedInstanceState){

    super.onActivityCreated(savedInstanceState);
....
    LocalBroadcastManager.getInstance(getActivity()).registerReceiver(mMessageReceiver,
            new IntentFilter("menu-filtered-refreshed"));


}


// Our handler for received Intents. This will be called whenever an Intent
// with an action named "menu-filtered-refreshed" is broadcasted.
public BroadcastReceiver mMessageReceiver = new BroadcastReceiver() {
    @Override
    public void onReceive(Context context, Intent intent) {
        // Get extra data included in the Intent    - could get data but not using it, directly using the fragment
        //  String message = intent.getStringExtra("message");
        /* retrieve restaurant list */

        filterText = intent.getStringExtra("filterText").toUpperCase();
        menuGridAdapter.filterText = filterText;
        Log.d("An Intent is ", filterText);
        menuGridAdapter.Test(filterText);
        // menuGridAdapter.notifyDataSetInvalidated(); doesn't work either
        menuGridAdapter.notifyDataSetChanged();
    }
};

My Test() method just computes the filteredList. Then I want to call notifyDataSetChanged() to update my gridview.

What happens is that my GridView view gets updated only when I click somewhere out of the action bar (basically) when it looses focus. I'd like my GridView view to be updated in real time. Am I missing something here or is this the expected behaviour?

I have a listview that contains a set of a custom view. Inside each custom view is a gridview.

I want to be able to update the background of each cell in the gridview when the user clicks a checkbox in the custom view.

Here is my custom view

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<RelativeLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:paddingLeft="10dp"
    android:paddingRight="10dp" >

    <TextView
        android:id="@+id/lblListHeader"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:textSize="32sp" />

    <CheckBox
        android:id="@+id/lblHeaderCheckbox"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:focusable="false"
        android:layout_centerVertical="true" />
</RelativeLayout>

<ca.package.CustomGridView
    android:id="@+id/gridView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:clickable="false"
    android:gravity="center"
    android:numColumns="7"
    android:padding="10dp"
    android:stretchMode="columnWidth"
    clickable="true" />

Here is my layout for each grid cell

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:clickable="true" >

<TextView
    android:id="@+id/grid_itemTxt"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="center">
</TextView>

</LinearLayout>

Here is how I fill the list

expListView = (ListView) this.findViewById(R.id.event_list);

    prepareListData();  

    listAdapter = new CustomAdapter(this, listDataHeader,
            listDataChild, listChildBoolean);

    expListView.setAdapter(listAdapter);

Here is the getView method in my custom adapter for the listView

public View getView(int groupPosition, View convertView, ViewGroup parent) {

    final int gp = groupPosition;

    String headerTitle = (String) getGroup(groupPosition);

    // Boolean bool = _listDataBoolean.get(groupPosition);
    Boolean bool = currentCalendarEvents.get(groupPosition).getAlert();

    if (convertView == null) {
        LayoutInflater infalInflater = (LayoutInflater) this._context
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        convertView = infalInflater.inflate(R.layout.list_group, null);
    }

    String[] data = new String[14];

    List<String> times = _currentListDataChild.get(_currentListDataHeader
            .get(groupPosition));

    data[0] = "Su";
    data[1] = "M";
    data[2] = "Tu";
    data[3] = "W";
    data[4] = "Th";
    data[5] = "F";
    data[6] = "Sa";

    data[7] = times.get(6); // sun
    data[8] = times.get(0); // mon
    data[9] = times.get(1); // tues
    data[10] = times.get(2); // wed
    data[11] = times.get(3); // thurs
    data[12] = times.get(4); // fri
    data[13] = times.get(5); // sat

    ArrayList<Boolean> boolArray = _listChildBoolean.get(_currentListDataHeader
            .get(groupPosition));

    final GridView gridView = (GridView) convertView.findViewById(R.id.gridView);

    final GridAdapter adapter = new GridAdapter(this._context, data, boolArray);

    gridView.setAdapter(adapter);

    TextView lblListHeader = (TextView) convertView
            .findViewById(R.id.lblListHeader);
    lblListHeader.setTypeface(null, Typeface.BOLD);
    lblListHeader.setText(headerTitle);

    final CheckBox chk2 = (CheckBox) convertView
            .findViewById(R.id.lblHeaderCheckbox);
    chk2.setChecked(bool);

    chk2.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            if (chk2.isChecked()) {
                currentCalendarEvents.get(gp).setAlert(true);
                currentCalendarEvents.get(gp).setDaysTrue();

                // I WANT TO UPDATE THE LIST HERE

                Log.i(LOG_TAG, "box checked");

            } else {
                currentCalendarEvents.get(gp).setAlert(false);
                currentCalendarEvents.get(gp).setDaysFalse();

                // AND HERE

                Log.i(LOG_TAG, "box not checked");
            }
        }
    });


    convertView.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            Log.i(LOG_TAG, "gridview clicked");
            currentCalendarEvents.get(gp).setBoolDays(adapter.getHashMap());
        }
    });

    return convertView;
}

Here is my GridAdapter

public class GridAdapter extends BaseAdapter {

private Context context;
private String[] items;
private ArrayList<Boolean> boolArray;
private ArrayList<View> views;
LayoutInflater inflater;

public GridAdapter(Context context, String[] items,
        ArrayList<Boolean> boolArray) {
    this.context = context;
    this.items = items;
    this.boolArray = boolArray;
    this.views = new ArrayList<View>();
    inflater = (LayoutInflater) this.context
            .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

public View getView(final int position, View convertView, ViewGroup parent) {

    if (convertView == null) {

        convertView = inflater.inflate(R.layout.grid_cell, null);

        final TextView tv = (TextView) convertView
                .findViewById(R.id.grid_itemTxt);
        tv.setText(items[position]);

        if (position < 7) {
            convertView.setBackgroundColor(Color.DKGRAY);
            tv.setTextSize(TypedValue.COMPLEX_UNIT_SP, 24);
            tv.setTextColor(Color.WHITE);
            tv.setTypeface(null, Typeface.BOLD);
            tv.setLines(2);
        } else {

            Log.e("blerp", "test : " + items[position]);

            if (!items[position].equals("")) {
                if (boolArray.get(position % 7)) {
                    convertView.setBackgroundColor(context.getResources()
                            .getColor(R.color.LightGreen));
                } else {
                    convertView.setBackgroundColor(Color.LTGRAY);
                }

                tv.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        if (boolArray.get(position % 7)) {
                            ((View) tv.getParent())
                                    .setBackgroundColor(Color.LTGRAY);
                            boolArray.set(position % 7, false);
                        } else {
                            ((View) tv.getParent())
                                    .setBackgroundColor(context
                                            .getResources().getColor(
                                                    R.color.LightGreen));
                            boolArray.set(position % 7, true);
                        }
                    }
                });

            } else
                convertView.setBackgroundColor(Color.LTGRAY);
            tv.setTextSize(TypedValue.COMPLEX_UNIT_SP, 18);
            tv.setLines(2);
        }

    }

    return convertView;
}

@Override
public int getCount() {
    return items.length;
}

@Override
public Object getItem(int position) {
    return items[position];
}

@Override
public long getItemId(int position) {
    return position;
}

public HashMap<String,Boolean> getHashMap() {
    HashMap<String, Boolean> hm = new HashMap<String,Boolean>();
    hm.put("sun", boolArray.get(0));
    hm.put("mon", boolArray.get(1));
    hm.put("tues", boolArray.get(2));
    hm.put("wed", boolArray.get(3));
    hm.put("thurs", boolArray.get(4));
    hm.put("fri", boolArray.get(5));
    hm.put("sat", boolArray.get(6));
    return hm;
}


}

Any help would be greatly appreciated, I can post more of my code if need be.

I am trying to build a TabView for my android application. This is my java code

    public class AllMain extends TabActivity{

        @Override
        protected void onCreate(Bundle savedInstanceState) {
            // TODO Auto-generated method stub
            super.onCreate(savedInstanceState);
            setContentView(R.layout.all_main);

            // create the TabHost that will contain the Tabs
            TabHost tabHost = getTabHost();
            Resources res = getResources();

            TabSpec tab1 = tabHost.newTabSpec("First Tab").setIndicator("Tab1").setContent(new Intent().setClass(this, TabAll_all.class));
            TabSpec tab2 = tabHost.newTabSpec("Second Tab").setIndicator("Tab2").setContent(new Intent().setClass(this, TabAll_all.class));
            TabSpec tab3 = tabHost.newTabSpec("Third tab").setIndicator("Tab3").setContent(new Intent().setClass(this, TabAll_all.class));

            tabHost.addTab(tab3);
            tabHost.addTab(tab1);
            tabHost.addTab(tab2);

            tabHost.setCurrentTab(0);
        }

    }

But when I run the application the application closes showing "Unfortunately stopped" message.

I realized that commenting below lines won't give me the error

            tabHost.addTab(tab3);
            tabHost.addTab(tab1);
            tabHost.addTab(tab2);

Thanks in advance.

I'want to update my UI from another class PrayerTime.java.
First Method :
I used this and I got (cannot resolve methode findViewById(int) error
PrayerTime.java :

 protected void onPostExecute(String s) {
        TextView rs = (TextView) findViewById(R.id.result);
        rs.setText(s);

    }

Seconde Method :
In PrayerTime.java I made this :

public class PrayerTime extends AsyncTask<String, String, String>  {
public String fr = null;
..
protected void onPostExecute(String s) {
        this.fr = s;
    }

And in MainActivity.java :

protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        PrayerTime pr = new PrayerTime();
        pr.execute();
        TextView rs = (TextView) findViewById(R.id.result);
        rs.setText(pr.fr);

    }

Here no error is shown but Also the Textview is not updated after The AsynTask is done.

I need you'r help to correct this or find another solution to update my UI

I have the following OnCreateMethod()

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_siege_main);
    mContext = getApplicationContext();

    gridview = (GridView) findViewById(R.id.gridview_board);
    initialBoard = new Board();
    initialBoard.generate(Globals.rand_width,
            Globals.rand_height, 
            Globals.rand_low, 
            Globals.rand_high);

    gridview.setAdapter(new BoardAdapter(this));

    gridview.setOnItemClickListener(new OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, View view,
                int position, long id) {
            //updateGameState(initialBoard);
        }
    });

    updateGameState(initialBoard);

    //typography
    TextView boardName = (TextView) findViewById(R.id.textview_board_name);
    boardName.setText("Uncharted Territory");
    Toast.makeText(SiegeMainActivity.this, "Uncharted Territory loaded", Toast.LENGTH_SHORT).show();

    Typeface face = Typeface.createFromAsset(getAssets(),
            "fonts/calibri-1.ttf");
    boardName.setTypeface(face);

    TextView pl1Name = (TextView) findViewById(R.id.textViewPlayer1Name);
    face = Typeface.createFromAsset(getAssets(),
            "fonts/calibri-1.ttf");
    pl1Name.setTypeface(face);

    TextView pl2Name = (TextView) findViewById(R.id.textViewPlayer2Name);
    face = Typeface.createFromAsset(getAssets(),
            "fonts/calibri-1.ttf");
    pl2Name.setTypeface(face);

}

and my updateGameState() method is like this:

private void updateGameState(Board b) {
    int [] vals = b.getLinearVals();
    int [] plays = b.getLinearPlays();
    int [] score = b.getScore();
    int turns = b.getTurns();

    Button tile;
    //updating board
    for(int i=0;i<gridview.getChildCount();i++){
        tile = (Button)gridview.getChildAt(i);
        tile.setText(""+vals[i]);

        if(plays[i]==1)
            tile.setBackgroundDrawable(mContext.getResources().getDrawable(R.drawable.btn_default_normal_green));
        else if (plays[i]==2)
            tile.setBackgroundDrawable(mContext.getResources().getDrawable(R.drawable.btn_default_normal_blue));
    }

    //Setting the score
    Button pl1Score, pl2Score;
    pl1Score = (Button) findViewById(R.id.buttonPlayer1Score);
    pl2Score = (Button) findViewById(R.id.buttonPlayer2Score);
    pl1Score.setText(""+score[0]);
    pl2Score.setText(""+score[1]);
}

When I call updateGameState() in OnCreate after creating the adapter, it should fill the buttons with some values. But it doesn't seem to work. But when I do the same thing on a click (commented out in the click listener), it seems to work fine. I want to populate the values on loading the page. Can somebody help me?

I am developing an android game and in a kind of lobby screen with rooms, i have all the content of the screen inside a giant scroll. Here´s an image of it: http://postimg.org/image/s64pzkxkz/

The problem is: Even though i put a android:paddingBottom="40sp" on the ListView(to make it a little higher than the bottom of the giant scroll), the scrollbar associated with it is overlapping the giant scroll. There´s a giant gray line that touches the bottom of the scroll... That´s my scrollbar.

Here is the code:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/idqualquersotestarlayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:background="@drawable/background_popups_modo_casual" >

<LinearLayout 
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
            android:id="@+id/tituloCasual"
            android:background="@drawable/plaquinha_treinamento"
            android:layout_centerHorizontal="true"
            android:gravity="center" >

            <TextView 
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" 
                android:textSize="40sp" 
                android:singleLine="true" 
                android:layout_marginTop="20sp"
                android:text="@string/modo_casual"
                android:id="@+id/textoTituloCasual"/>
</LinearLayout>
<ImageView
    android:id="@+id/cordasPlacaCasual"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/tituloCasual"
    android:layout_centerHorizontal="true"
    android:src="@drawable/cordas_placa_treinamento"
    android:layout_marginTop="-5sp" />
 <RelativeLayout
    android:id="@+id/pergaminho"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/cordasPlacaCasual"
    android:layout_marginTop="-60sp"
    android:background="@drawable/pergaminho" >
<Button
    android:id="@+id/botaoReload"
    style="?android:attr/buttonStyleSmall"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignTop="@+id/botaoCriarNovaSala"
    android:layout_toRightOf="@+id/botaoCriarNovaSala"
    android:text="@string/recarregar"
    android:onClick="recarregarSalas" />

<RelativeLayout
    android:id="@+id/spinnerELabelPesquisarSalas"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginTop="110sp"
    android:layout_centerHorizontal="true" >

<TextView
    android:id="@+id/labelPesquisarSalas"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_marginLeft="28dp"
    android:text="@string/pesquisar_salas_por"
    android:layout_centerVertical="true"
    android:textSize="20sp"/>

<Spinner
    android:id="@+id/spinnerPesquisarSalasModoCasual"
    android:layout_width="200sp"
    android:layout_height="50sp"
    android:layout_toRightOf="@id/labelPesquisarSalas"
    android:layout_alignTop="@+id/labelPesquisarSalas"/>
</RelativeLayout>
<TextView android:id="@+id/alerta_salas_novas"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/alerta_novas_salas_criadas"
            android:layout_below="@+id/botaoCriarNovaSala"
            android:textSize="17sp"
            android:layout_marginLeft="28dp"
            android:layout_marginTop="30dp"
            android:visibility="invisible" />

 <LinearLayout
     android:id="@+id/cabecalho_tabela_listar_salas"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_below="@+id/alerta_salas_novas"
     android:layout_marginTop="5dp"
     android:background="@drawable/red_header"
     android:layout_alignLeft="@+id/lista_salas_abertas"
     android:layout_alignRight="@+id/lista_salas_abertas" >

     <TextView
            android:id="@+id/label_titulo_do_jogador"
            android:layout_width="0px"
            android:layout_weight="1"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="center"
            android:text="@string/dan"
            android:textColor="#FFFFFF" />
    <TextView
            android:id="@+id/label_titulo_username"
            android:layout_width="0px"
            android:layout_weight="3"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="center"
            android:text="@string/email"
            android:textColor="#FFFFFF" />

        <TextView
            android:id="@+id/label_categorias_selecionadas"
            android:layout_width="0px"
            android:layout_weight="1"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="center"
            android:text="@string/categorias"
            android:textColor="#FFFFFF" />

        <TextView
            android:id="@+id/label_entrar_na_sala"
            android:layout_width="0px"
            android:layout_weight="1"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="center"
            android:text=""
            android:textColor="#FFFFFF" />

</LinearLayout>

<ListView
    android:id="@+id/lista_salas_abertas"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignRight="@+id/spinnerELabelPesquisarSalas"
    android:layout_alignLeft="@+id/spinnerELabelPesquisarSalas"
    android:layout_alignParentBottom="true"
    android:paddingBottom="40sp"
    android:layout_below="@+id/cabecalho_tabela_listar_salas"
    android:fastScrollEnabled="true"
    android:fastScrollAlwaysVisible="true"
    android:scrollbarStyle="insideInset"
    android:listSelector="@android:color/transparent" >
</ListView>

<Button
    android:id="@+id/botaoCriarNovaSala"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/spinnerELabelPesquisarSalas"
    android:layout_centerHorizontal="true"
    android:onClick="abrirTelaCriarNovaSala"
    android:text="@string/criar_nova_sala" />
</RelativeLayout>

What can i do to add padding to the scrollbar?

when i use if else condition in switch condition , its enter in 'if' result but its not enter in the else condition, if you have any solution help me please. this the code:

        switch (item) 
        {
          case 0:
              {
              System.out.println("test1");

              if(condition1)
                {
                    System.out.println("test2");
                }
              else
                {
                    System.out.println("test3");
                    if(condition2)
                    {
                        System.out.println("test3");
                        System.out.println("test4");
                    }
                }       
                break;
              }

          case 1:
              {
              System.out.println("test5");

              if(condition3)
                {
                    System.out.println("test6");
                }
                else
                {
                    System.out.println("test7");
                    if(condition4)
                    {
                        System.out.println("test8");
                        System.out.println("test9");
                    }
                }       
                break;
              }

           }

Is there any way to get an unique identifier of a BT device?

I have same two devices, but getAddress, and UUID return the same.

How can I get a uniq id for them?

The two device is bt classic device, so not ble.

I try to run a android project which i created new ,

i can not run it because when i right click project --> RUN AS --> RUN CONFIGURATIONS . There is no my project under 'Android Applications' on purpose run it !

i just updated a few things and Android 5.0 (API LEVEL 21) from SDK Manager .

Please Help !

I'm trying to retrieve the coverage test info from Xcode 6 and failed in the attempt. I'm flush out on applicationDidEnterBackground with __gcov_flush() I set to YES both "Generate Debug Symbols", "Generate test Coverage files" and "Instrument program flow" as the Apple Technical Q&A explains. (https://developer.apple.com/library/ios/qa/qa1514/_index.html)

I run the app with LLVM 6.0 compiler.

I look for any .gcda files in Library/Developer/XCode/DerivedData/Build/Intermediates/App.build also as Apple Q&A says.

I can not found any coverage file either this directory or elsewhere in my mac.

Seems this is the correct way to do it until Xcode 5.1.

Any ideas are welcome.

I'm trying to send multiple objects as an array to a Server with RestKit. Unfortunately I'm not able to do so.
Following my pretty simple objects as well as the mapping for RestKit:

Example Objects

@interface MyExampleObject : NSObject

@property NSString *key;
@property NSString *value;

@end

Array-Object holding multiple of MyExampleObject

@interface MyArray : NSObject

@property NSArray *array;

@end

Mapping

RKObjectMapping *mappingObject = [RKObjectMapping mappingForClass:[BFLObject class]];
[mappingObject addAttributeMappingsFromDictionary:@{
                                              @"key" : @"key",
                                              @"value" : @"value"
                                              }];

RKObjectMapping *mappingArray = [RKObjectMapping mappingForClass:[BFLArray class]];
[mappingArray addPropertyMapping:[RKRelationshipMapping relationshipMappingFromKeyPath:@"dummy" toKeyPath:@"array" mappingObject]];

If I do it this way I’ll get the following result:

{
  "dummy" : [
    {
      "key" : "MyKey1",
      "value" : "MyValue1"
    },
    {
      "key" : "MyKey2",
      "value" : "MyValue2"
    }
  ]
}

But I want only the array without a „key“. Like this:

[
    {
      "key" : "MyKey1",
      "value" : "MyValue1"
    },
    {
      "key" : "MyKey2",
      "value" : "MyValue2"
    }
]

It seemed obvious for me to change the relationshipMappingFromKeyPath to nil. But this didn't worked (got a setObjectForKey: key cannot be nil error).

What do I have to do to send multiple MyExampleObjects to my Server as a JSON-Array?

I am using the method given below

IBOutlet UIImageView *imgViewCheck;

- (IBAction)clkCheckUncheck:(id)sender {
    if (imgViewCheck.image == [UIImage imageNamed:@"uncheck.png"]) {
        imgViewCheck.image = [UIImage imageNamed:@"check.png"];
    } else {
        imgViewCheck.image = [UIImage imageNamed:@"uncheck.png"];
    }
}

It is working in up to iOS7 but not working in iOS8

I would like to send the token , that the server give me when i login to it , to another ViewController existing because i try to create a social app for photo and the token is the identification for the user photo

i don't know how i doing this and i searched in the web but i don't find nothing , i create the upload and the request from the server and it give me the token but i can't catch the token and use it for my second view controller

sorry for my english but i'm Italian

thanks for the help

I am creating my navigation bar in viewDidLoad. I saw in many sample codes that a navigation bar should be created in viewWillAppear. If my view controller is the root view controller, the navigation bar is not created completely. Else it seems to works normally. Is there any way that I can create the navigation bar completely and only once in the whole life cycle of the view controller and not in viewWillAppear?

I develop a input method. I want to let the blind to use it easily. I know screen reader that is installed in IOS called VoiceOver. Blinds can you rotor item "auto-text" to make selection of candidate list item. But I don't know how to do. How should I do for this case? Thanks!

I'm studying the iOS app dev tutorial in http://www.raywenderlich.com/25561/learn-to-code-ios-apps-3-your-first-app.

At the part of "Connecting the Dots", when I tried to do "With the cursor over the “Tap Me” button, hold down the Control key, then click and drag to anywhere in the green background.", I don't see the expected buttonPressed item, but see below:

enter image description here

I guess it may be caused by my Xcode is updated to the latest version 6.0.1, and my Macbook update to Yosemite.

Could someone tell me what the correct operation to connect the Button pressed action to the method buttonPressed in code?

Thanks, Reed

I'm trying to make a basic custom cell and after I followed the tutorials I'm getting this issue.

reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"MainCell";

CustomCell *customCell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

/*if (! customCell) {
    NSArray *parts = [[NSBundle mainBundle] loadNibNamed:@"cell" owner:nil options:nil];
    customCell = [parts objectAtIndex:0];
}
*/

customCell.lblTime.text = [array1 objectAtIndex:indexPath.row];
customCell.lblEvent.text = [array2 objectAtIndex:indexPath.row];

return customCell;
}

Also I have set the Identity on the tableView but still it is not working and I'm using Storyboard. Moreover I have did linked the datasource and delegate. Please where would be my issue?

iTunes Connect (web-based) is not showing any "Updates" to my app, but I can still see this in the "Connect" app for iOS. Has the web-based version of iTunes Connect changed how this is reported? The latest (v13 -- Sep '14 -- updated for iOS8) App Store User Guide shows "Product Type Identifier" as one of the fields available for download, but does not say this is available via the web-based interface. I thought this might be "Content Type" but all it shows in my reports is "iOS App Purchases".

I'm using Google AdMob mediation with the iAd adapter and standard google ads. To present the ads at the bottom im using CJPAdController which works fine as well. I'm correctly receiving test ads for both networks and the google ads work perfectly when an ad is successfully received. The problem is, the iAd banners sometimes show up but aren't clickable. The banner has the dark click overlay effect but the modal fullscreen ad doesn't show up on click (tested on device iOS 7).

Sometimes though, even the iAds work fine. I have set the background color to white of every view i could find, as there seems to be a bug with this but still doesn't work.

Anyone an idea what could be the problem here? Is it the test ads and it will work in the app-store version?

I have TableView like this

enter image description here

and I want to pass data through segue different for every cell.

I have this code for every cell but I want different URL for each cell.

   var joj:NSURL = NSURL(string: "http://88.212.10.27:81/streams/joj.m3u8")
    moviePlayer = MPMoviePlayerController(contentURL: joj)

    moviePlayer.view.frame = CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: self.view.frame.size.height)
    moviePlayer.view.sizeToFit()
    self.view.addSubview(moviePlayer.view)
    moviePlayer.fullscreen = true
    moviePlayer.controlStyle = MPMovieControlStyle.Embedded

like in obj c - isEqualToString "Markíza"

I am converting a Delphi windows app to be multi platform, a crucial part of the application is to be able to export some data files from an SQLite database to the host machine.
It works absolutely fine on windows and OSX, but when I deploy it to an iPad I get an error message stating :

Cannot create file "/var/mobile/Containers/Bundle/Application/9FFD6B02-1B3A-4F07-9733-3790D2FBF268/AAG_Multi.app/Text/Templates/full Transcript.dwt   
Operation not permitted

I tried TMemorystream as well, same result. The directory should exist as I called Tdirectory.Creatdirectory(fullPath) immediately prior to the TStreamCreate Line.